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.

Object Safety§

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>