pub struct LocalizationsDelegateRef(/* private fields */);Expand description
A shared, erased LocalizationsDelegate.
Implementations§
Source§impl LocalizationsDelegateRef
impl LocalizationsDelegateRef
Sourcepub fn new<T: ?Sized + 'static>(delegate: impl LocalizationsDelegate<T>) -> Self
pub fn new<T: ?Sized + 'static>(delegate: impl LocalizationsDelegate<T>) -> Self
Erases delegate.
Trait Implementations§
Source§impl Clone for LocalizationsDelegateRef
impl Clone for LocalizationsDelegateRef
Source§impl Debug for LocalizationsDelegateRef
impl Debug for LocalizationsDelegateRef
Auto Trait Implementations§
impl !RefUnwindSafe for LocalizationsDelegateRef
impl !Send for LocalizationsDelegateRef
impl !Sync for LocalizationsDelegateRef
impl !UnwindSafe for LocalizationsDelegateRef
impl Forget for LocalizationsDelegateRef
impl Freeze for LocalizationsDelegateRefwhere
*const RcInner<dyn AnyLocalizationsDelegate> is !null: Freeze,
PhantomData<RcInner<dyn AnyLocalizationsDelegate>>: Freeze,
impl Move for LocalizationsDelegateRef
impl Unpin for LocalizationsDelegateRef
impl UnsafeUnpin for LocalizationsDelegateRefwhere
*const RcInner<dyn AnyLocalizationsDelegate> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn AnyLocalizationsDelegate>>: UnsafeUnpin,
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