pub struct SealedObjectType<T: 'static> { /* private fields */ }Expand description
The SealedObjectType is obtained by calling the ObjectType::seal method. The SealedObjectType
is immutable, but allows the instantiation of objects.
Implementations§
Source§impl<T: 'static> SealedObjectType<T>
impl<T: 'static> SealedObjectType<T>
Sourcepub fn new_instance(&self, object: T) -> Object
pub fn new_instance(&self, object: T) -> Object
Creates a new instance of the SealedObjectType. Takes ownership of the passed in object. All methods called against the returned Object will receive a reference to the passed in object.
Auto Trait Implementations§
impl<T> Freeze for SealedObjectType<T>
impl<T> !RefUnwindSafe for SealedObjectType<T>
impl<T> !Send for SealedObjectType<T>
impl<T> !Sync for SealedObjectType<T>
impl<T> Unpin for SealedObjectType<T>
impl<T> !UnwindSafe for SealedObjectType<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