ChopFrom

Trait ChopFrom 

Source
pub trait ChopFrom<T> {
    // Required method
    fn chop_from(value: T) -> Self;
}

Required Methods§

Source

fn chop_from(value: T) -> Self

Perform panicking truncation

If the value fits into the Self type, return that value. Otherwise, panic.

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<Source, Dest> ChopFrom<Source> for Dest
where Source: Chop<Dest>,