Skip to main content

Inversion

Struct Inversion 

Source
pub struct Inversion<T>(pub T);
Expand description

Constant inversion operation (inv)

  • Inversion(_)::inv()

Tuple Fields§

§0: T

Implementations§

Source§

impl Inversion<Ch32>

Source

pub const fn inv(self) -> Ch32

Invert the value.

Source§

impl Inversion<Ch64>

Source

pub const fn inv(self) -> Ch64

Invert the value.

Source§

impl Inversion<Ch8>

Source

pub const fn inv(self) -> Ch8

Invert the value.

Source§

impl Inversion<Ch12>

Source

pub const fn inv(self) -> Ch12

Invert the value.

Source§

impl Inversion<Ch16>

Source

pub const fn inv(self) -> Ch16

Invert the value.

Source§

impl Inversion<Ch24>

Source

pub const fn inv(self) -> Ch24

Invert the value.

Source§

impl Inversion<Ch32>

Source

pub const fn inv(self) -> Ch32

Invert the value.

Source§

impl Inversion<Ch64>

Source

pub const fn inv(self) -> Ch64

Invert the value.

Source§

impl Inversion<Ch8>

Source

pub const fn inv(self) -> Ch8

Invert the value.

Source§

impl Inversion<Ch12>

Source

pub const fn inv(self) -> Ch12

Invert the value.

Source§

impl Inversion<Ch16>

Source

pub const fn inv(self) -> Ch16

Invert the value.

Source§

impl Inversion<Ch24>

Source

pub const fn inv(self) -> Ch24

Invert the value.

Trait Implementations§

Source§

impl<T: Debug> Debug for Inversion<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Inversion<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Inversion<T>
where T: RefUnwindSafe,

§

impl<T> Send for Inversion<T>
where T: Send,

§

impl<T> Sync for Inversion<T>
where T: Sync,

§

impl<T> Unpin for Inversion<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for Inversion<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for Inversion<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.