pub struct ObjectWriter<'a, 'b> { /* private fields */ }
Expand description
Writing handle for object properties.
This handle is a safeguard to assure that a object is always a series of properties.
Implementations§
Source§impl<'a, 'b> ObjectWriter<'a, 'b>
impl<'a, 'b> ObjectWriter<'a, 'b>
Sourcepub fn init_with_context<'c, K: ?Sized, T: ?Sized, A: Atom<'a, 'c>>(
&'c mut self,
key: URID<K>,
context: URID<T>,
child_urid: URID<A>,
parameter: A::WriteParameter,
) -> Option<A::WriteHandle>
pub fn init_with_context<'c, K: ?Sized, T: ?Sized, A: Atom<'a, 'c>>( &'c mut self, key: URID<K>, context: URID<T>, child_urid: URID<A>, parameter: A::WriteParameter, ) -> Option<A::WriteHandle>
Initialize a new property with a context.
This method does the same as init
, but also sets the context URID.
Sourcepub fn init<'c, K: ?Sized, A: Atom<'a, 'c>>(
&'c mut self,
key: URID<K>,
child_urid: URID<A>,
parameter: A::WriteParameter,
) -> Option<A::WriteHandle>
pub fn init<'c, K: ?Sized, A: Atom<'a, 'c>>( &'c mut self, key: URID<K>, child_urid: URID<A>, parameter: A::WriteParameter, ) -> Option<A::WriteHandle>
Initialize a new property.
This method writes out the header of a property and returns a reference to the space, so the property values can be written.
Properties also have a context URID internally, which is rarely used. If you want to add one, use init_with_context
.
Auto Trait Implementations§
impl<'a, 'b> Freeze for ObjectWriter<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for ObjectWriter<'a, 'b>
impl<'a, 'b> !Send for ObjectWriter<'a, 'b>
impl<'a, 'b> !Sync for ObjectWriter<'a, 'b>
impl<'a, 'b> Unpin for ObjectWriter<'a, 'b>
impl<'a, 'b> !UnwindSafe for ObjectWriter<'a, 'b>
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