[][src]Struct inplace::Inplace

pub struct Inplace<T>(_);

Implementations

impl<T> Inplace<T>[src]

pub fn new(v: T) -> Inplace<T>[src]

pub fn deref_move(self) -> T[src]

pub fn inplace<R>(&mut self, f: impl FnOnce(T) -> (R, T)) -> R[src]

pub fn inplace_(&mut self, f: impl FnOnce(T) -> T)[src]

Trait Implementations

impl<T> AsMut<T> for Inplace<T>[src]

impl<T> AsRef<T> for Inplace<T>[src]

impl<T> Borrow<T> for Inplace<T>[src]

impl<T> BorrowMut<T> for Inplace<T>[src]

impl<T: Clone> Clone for Inplace<T>[src]

impl<T: Copy> Copy for Inplace<T>[src]

impl<T: Debug> Debug for Inplace<T>[src]

impl<T: Default> Default for Inplace<T>[src]

impl<T> Deref for Inplace<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for Inplace<T>[src]

impl<T: Display> Display for Inplace<T>[src]

impl<T: Eq> Eq for Inplace<T>[src]

impl<T> From<T> for Inplace<T>[src]

impl<T: Hash> Hash for Inplace<T>[src]

impl<T: Ord> Ord for Inplace<T>[src]

impl<T: PartialEq> PartialEq<Inplace<T>> for Inplace<T>[src]

impl<T: PartialOrd> PartialOrd<Inplace<T>> for Inplace<T>[src]

Auto Trait Implementations

impl<T> Send for Inplace<T> where
    T: Send

impl<T> Sync for Inplace<T> where
    T: Sync

impl<T> Unpin for Inplace<T> where
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.