Trait TakeHalf

Source
pub trait TakeHalf: Sized {
    // Required method
    fn take_half(self) -> Self;
}

Required Methods§

Source

fn take_half(self) -> Self

Half the current value

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<T> TakeHalf for T
where T: Number,