[−][src]Struct inplace::Inplace
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]
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T: Clone> Clone for Inplace<T>
[src]
fn clone(&self) -> Inplace<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
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]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Ord> Ord for Inplace<T>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[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,
T: Send,
impl<T> Sync for Inplace<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Inplace<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,