pub struct CreateSpec { /* private fields */ }
Expand description
A builder-pattern type for making a new object.
Implementations§
source§impl CreateSpec
impl CreateSpec
sourcepub fn new(lifetime: LifetimeType, backing: BackingType) -> Self
pub fn new(lifetime: LifetimeType, backing: BackingType) -> Self
Construct a basic CreateSpec.
sourcepub fn tie<T>(&mut self, other: &Object<T>, flags: CreateTieFlags) -> &mut Self
pub fn tie<T>(&mut self, other: &Object<T>, flags: CreateTieFlags) -> &mut Self
Add a tie to another object.
sourcepub fn src<T>(&mut self, src: ObjectSource) -> &mut Self
pub fn src<T>(&mut self, src: ObjectSource) -> &mut Self
Add a source for object creation.
Auto Trait Implementations§
impl Freeze for CreateSpec
impl !ObjSafe for CreateSpec
impl RefUnwindSafe for CreateSpec
impl Send for CreateSpec
impl Sync for CreateSpec
impl Unpin for CreateSpec
impl UnwindSafe for CreateSpec
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