pub struct Serializer { /* private fields */ }Expand description
Handles serialization and deserialization of graph entities
Implementations§
Source§impl Serializer
impl Serializer
Sourcepub const fn new(format: SerializationFormat) -> Self
pub const fn new(format: SerializationFormat) -> Self
Create a new serializer with the specified format
Sourcepub fn deserialize_node(&self, bytes: &[u8]) -> Result<Node>
pub fn deserialize_node(&self, bytes: &[u8]) -> Result<Node>
Deserialize a node from bytes
Sourcepub fn deserialize_edge(&self, bytes: &[u8]) -> Result<Edge>
pub fn deserialize_edge(&self, bytes: &[u8]) -> Result<Edge>
Deserialize an edge from bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Serializer
impl RefUnwindSafe for Serializer
impl Send for Serializer
impl Sync for Serializer
impl Unpin for Serializer
impl UnwindSafe for Serializer
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