Docs.rs
no-std-compat-0.4.1
no-std-compat 0.4.1
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
jD91mZM2
Dependencies
hashbrown ^0.8.1
normal
optional
spin ^0.5.2
normal
optional
libc ^0.2.74
dev
Versions
0%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
no_
std_
compat
0.4.1
Module array
Module Items
Structs
Functions
In crate no_
std_
compat
no_std_compat
Module
array
Copy item path
Source
Structs
§
Into
Iter
A by-value
array
iterator.
TryFrom
Slice
Error
The error type returned when a conversion from a slice to an array fails.
Functions
§
from_fn
Creates an array of type [T; N], where each element
T
is the returned value from
cb
using that element’s index.
from_
mut
Converts a mutable reference to
T
into a mutable reference to an array of length 1 (without copying).
from_
ref
Converts a reference to
T
into a reference to an array of length 1 (without copying).
repeat
Experimental
Creates an array of type
[T; N]
by repeatedly cloning a value.
try_
from_
fn
Experimental
Creates an array
[T; N]
where each fallible array element
T
is returned by the
cb
call. Unlike
from_fn
, where the element creation can’t fail, this version will return an error if any element creation was unsuccessful.