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.

Implementors§

source§

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

source§

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