pub struct GraphBuffer {
pub nodes: Vec<Node>,
pub root: u32,
}Fields§
§nodes: Vec<Node>§root: u32Implementations§
Source§impl GraphBuffer
impl GraphBuffer
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes(bytes: &[u8]) -> Result<Self, AbiError>
pub fn from_bytes_with_limits( bytes: &[u8], limits: &Limits, ) -> Result<Self, AbiError>
pub fn validate_basic(&self) -> Result<(), AbiError>
pub fn validate_basic_with_limits( &self, limits: &Limits, ) -> Result<(), AbiError>
Trait Implementations§
Source§impl Clone for GraphBuffer
impl Clone for GraphBuffer
Source§fn clone(&self) -> GraphBuffer
fn clone(&self) -> GraphBuffer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GraphBuffer
impl RefUnwindSafe for GraphBuffer
impl Send for GraphBuffer
impl Sync for GraphBuffer
impl Unpin for GraphBuffer
impl UnsafeUnpin for GraphBuffer
impl UnwindSafe for GraphBuffer
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