pub struct SharedValueTransformer<T: Default + Clone + 'static>(/* private fields */);
Trait Implementations§
type Type = T
type Borrow<'r> = Ref<'r, T>
type BorrowMut<'r> = RefMut<'r, T>
type Dependency = ()
type Owned = Shared<T>
type Ref = Shared<T>
type RefMut = Shared<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§
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