ToSigned

Trait ToSigned 

Source
pub trait ToSigned {
    type Output;

    // Required methods
    fn to_signed(self) -> Self::Output;
    fn negative_one() -> Self::Output;
}
Expand description

Converts this value to the signed version using the as cast operation.

Required Associated Types§

Required Methods§

Source

fn to_signed(self) -> Self::Output

Source

fn negative_one() -> Self::Output

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.

Implementations on Foreign Types§

Source§

impl ToSigned for f32

Source§

impl ToSigned for f64

Source§

impl ToSigned for i8

Source§

impl ToSigned for i16

Source§

impl ToSigned for i32

Source§

impl ToSigned for i64

Source§

impl ToSigned for i128

Source§

impl ToSigned for u8

Source§

impl ToSigned for u16

Source§

impl ToSigned for u32

Source§

impl ToSigned for u64

Source§

impl ToSigned for u128

Implementors§