11

from_ref in std::array - Rust

 3 years ago
source link: https://doc.rust-lang.org/stable/std/array/fn.from_ref.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Function std::array::from_ref1.53.0[−][src]

pub fn from_ref<T>(s: &T) -> &[T; 1]

Converts a reference to T into a reference to an array of length 1 (without copying).


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK