bounded_collections::bounded_vec

Trait TruncateFrom

Source
pub trait TruncateFrom<T> {
    // Required method
    fn truncate_from(unbound: T) -> Self;
}
Expand description

Create an object through truncation.

Required Methods§

Source

fn truncate_from(unbound: T) -> Self

Create an object through truncation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, T, S: Get<u32>> TruncateFrom<&'a [T]> for BoundedSlice<'a, T, S>

Source§

impl<T, S: Get<u32>> TruncateFrom<Vec<T>> for BoundedVec<T, S>