pub struct ObjectShape(/* private fields */);Implementations§
Source§impl ObjectShape
 
impl ObjectShape
pub fn new(elements: Vec<ShapeElement>) -> ObjectShape
Trait Implementations§
Source§impl Clone for ObjectShape
 
impl Clone for ObjectShape
Source§fn clone(&self) -> ObjectShape
 
fn clone(&self) -> ObjectShape
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for ObjectShape
 
impl Debug for ObjectShape
Source§impl Deref for ObjectShape
 
impl Deref for ObjectShape
Source§type Target = ObjectShapeInfo
 
type Target = ObjectShapeInfo
The resulting type after dereferencing.
Source§fn deref(&self) -> &ObjectShapeInfo
 
fn deref(&self) -> &ObjectShapeInfo
Dereferences the value.
Source§impl<'a> From<&'a [ShapeElement]> for ObjectShape
 
impl<'a> From<&'a [ShapeElement]> for ObjectShape
Source§fn from(shape: &'a [ShapeElement]) -> ObjectShape
 
fn from(shape: &'a [ShapeElement]) -> ObjectShape
Converts to this type from the input type.
Source§impl PartialEq for ObjectShape
 
impl PartialEq for ObjectShape
impl Eq for ObjectShape
impl StructuralPartialEq for ObjectShape
Auto Trait Implementations§
impl Freeze for ObjectShape
impl RefUnwindSafe for ObjectShape
impl Send for ObjectShape
impl Sync for ObjectShape
impl Unpin for ObjectShape
impl UnwindSafe for ObjectShape
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> EncoderForExt for Twhere
    T: ?Sized,
 
impl<T> EncoderForExt for Twhere
    T: ?Sized,
Source§fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
    F: 'static,
    Self: EncoderFor<F>,
 
fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
    F: 'static,
    Self: EncoderFor<F>,
Convert this builder into a vector of bytes. This is generally
not the most efficient way to perform serialization.
Source§fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
    F: 'static,
    Self: EncoderFor<F>,
 
fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
    F: 'static,
    Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Source§fn encode_buffer_uninit<'a, F>(
    &self,
    buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
    F: 'static,
    Self: EncoderFor<F>,
 
fn encode_buffer_uninit<'a, F>(
    &self,
    buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
    F: 'static,
    Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.