Struct static_cow::Change

source ·
pub struct Change<T>(pub T);
Expand description

An Idempotent implementation which wraps a type that may yet be converted to Owning.

Tuple Fields§

§0: T

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Get a reference to either a T or a T::Owning.
Get a mutable reference to either a T or a T::Owning.
Converts self into a T::Owning; equivalent to into_owning().0.
Converts an object which owns its contents into one which borrows them.
The resulting type after obtaining ownership of self’s contents.
Creates an object which owns its contents from one which borrows them.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.