Skip to main content

TakeHalf

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".

Implementors§

Source§

impl<T> TakeHalf for T
where T: NumericIdentity,