pub trait Filled<T>: Sized {
// Required method
fn filled_using<F>(f: F) -> Option<Self>
where F: Fn() -> T;
// Provided methods
fn filled(t: T) -> Option<Self>
where T: Copy { ... }
fn filled_default() -> Option<Self>
where T: Default { ... }
}Expand description
Required Methods§
fn filled_using<F>(f: F) -> Option<Self>where
F: Fn() -> T,
Provided Methods§
fn filled(t: T) -> Option<Self>where
T: Copy,
fn filled_default() -> Option<Self>where
T: Default,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T> Filled<T> for Vec<T>
Available on crate feature alloc only.
impl<T> Filled<T> for Vec<T>
Available on crate feature
alloc only.