pub struct TypedObjectWriter<'a, 'b> { /* private fields */ }Expand description
A writer for encoding the contents of a typed child object
Implementations§
Trait Implementations§
Source§impl<'a> ObjWriter<'a> for TypedObjectWriter<'a, '_>
impl<'a> ObjWriter<'a> for TypedObjectWriter<'a, '_>
Source§fn object<'c: 'a, 'd>(
&'d mut self,
cache_key: CacheKey,
) -> (Option<ObjectWriter<'d, 'c>>, Reference)where
'a: 'c + 'd,
fn object<'c: 'a, 'd>(
&'d mut self,
cache_key: CacheKey,
) -> (Option<ObjectWriter<'d, 'c>>, Reference)where
'a: 'c + 'd,
Create a writer that can serialize an object Read more
Source§fn array<'c: 'a, 'd>(
&'d mut self,
cache_key: CacheKey,
) -> (Option<ArrayWriter<'d, 'c>>, Reference)where
'a: 'c + 'd,
fn array<'c: 'a, 'd>(
&'d mut self,
cache_key: CacheKey,
) -> (Option<ArrayWriter<'d, 'c>>, Reference)where
'a: 'c + 'd,
Create a writer that can serialize an array Read more
Source§fn strict_array<'c: 'a, 'd>(
&'d mut self,
cache_key: CacheKey,
) -> (Option<StrictArrayWriter<'d, 'c>>, Reference)where
'a: 'c + 'd,
fn strict_array<'c: 'a, 'd>(
&'d mut self,
cache_key: CacheKey,
) -> (Option<StrictArrayWriter<'d, 'c>>, Reference)where
'a: 'c + 'd,
Create a writer that can serialize a strict array Read more
Source§fn typed_object<'c: 'a, 'd>(
&'d mut self,
class_name: &str,
cache_key: CacheKey,
) -> (Option<TypedObjectWriter<'d, 'c>>, Reference)where
'a: 'c + 'd,
fn typed_object<'c: 'a, 'd>(
&'d mut self,
class_name: &str,
cache_key: CacheKey,
) -> (Option<TypedObjectWriter<'d, 'c>>, Reference)where
'a: 'c + 'd,
Typed objects can also be sent cached
Create a writer that can serialize a typed object Read more
Source§fn make_reference(&mut self) -> Reference
fn make_reference(&mut self) -> Reference
Create a reference in the root
Source§fn cache_get(&mut self, cache_key: &CacheKey) -> Option<Reference>
fn cache_get(&mut self, cache_key: &CacheKey) -> Option<Reference>
Retrieve a reference from the cache
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for TypedObjectWriter<'a, 'b>
impl<'a, 'b> !Send for TypedObjectWriter<'a, 'b>
impl<'a, 'b> !Sync for TypedObjectWriter<'a, 'b>
impl<'a, 'b> !UnwindSafe for TypedObjectWriter<'a, 'b>
impl<'a, 'b> Freeze for TypedObjectWriter<'a, 'b>
impl<'a, 'b> Unpin for TypedObjectWriter<'a, 'b>
impl<'a, 'b> UnsafeUnpin for TypedObjectWriter<'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