pub struct PtrValueTransformer<T: Default + Clone + 'static>(/* private fields */);
Trait Implementations§
Source§impl<T: Default + Clone + 'static> ValueTransformer for PtrValueTransformer<T>
impl<T: Default + Clone + 'static> ValueTransformer for PtrValueTransformer<T>
type Type = T
type Borrow<'r> = &'r T
type BorrowMut<'r> = &'r mut T
type Dependency = ()
type Owned = T
type Ref = Ptr<T>
type RefMut = Ptr<T>
fn from_owned(_: &Registry, value: Self::Type) -> Self::Owned
fn from_ref( _: &Registry, value: &Self::Type, _: Option<Self::Dependency>, ) -> Self::Ref
fn from_ref_mut( _: &Registry, value: &mut Self::Type, _: Option<Self::Dependency>, ) -> Self::RefMut
fn into_owned(value: Self::Owned) -> Self::Type
fn into_ref(value: &Self::Ref) -> Self::Borrow<'_>
fn into_ref_mut(value: &mut Self::RefMut) -> Self::BorrowMut<'_>
Auto Trait Implementations§
impl<T> Freeze for PtrValueTransformer<T>
impl<T> RefUnwindSafe for PtrValueTransformer<T>
impl<T> Send for PtrValueTransformer<T>
impl<T> Sync for PtrValueTransformer<T>
impl<T> Unpin for PtrValueTransformer<T>
impl<T> UnwindSafe for PtrValueTransformer<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more