pub struct Visitor(/* private fields */);Expand description
A builder of binary data to be sent to and from functions. This represents a sequence of slots of 64-bit data that can be grown by pushing more 64-bid data into it.
Implementations§
Source§impl Visitor
impl Visitor
pub fn new(size: Size) -> Visitor
pub fn into_inner(self) -> Box<[u8]>
pub fn reset(&mut self)
pub fn set_full(&mut self)
pub fn buffer(&self) -> &[u8] ⓘ
pub fn buffer_mut(&mut self) -> &mut [u8] ⓘ
Sourcepub fn pop(&mut self) -> f64
pub fn pop(&mut self) -> f64
Removes a scalar value from the end of the visitor, shrinking it by 1 slot.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Visitor
impl RefUnwindSafe for Visitor
impl Send for Visitor
impl Sync for Visitor
impl Unpin for Visitor
impl UnwindSafe for Visitor
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.