Trait hybrid_array::FromFn
source · pub trait FromFn<T>: Sized {
// Required methods
fn from_fn<F>(cb: F) -> Self
where F: FnMut(usize) -> T;
fn try_from_fn<E, F>(cb: F) -> Result<Self, E>
where F: FnMut(usize) -> Result<T, E>;
}
Expand description
Construct an array type from the given generator function.
Required Methods§
Object Safety§
This trait is not object safe.