pub struct HostTransferLayout { /* private fields */ }Implementations§
Source§impl HostTransferLayout
impl HostTransferLayout
pub fn new( element_type: ElementType, element_count: u64, ) -> Result<Self, VNextError>
pub fn byte_len(self) -> Result<u64, VNextError>
pub fn validate_bytes(self, bytes: usize) -> Result<(), VNextError>
pub fn element_type(self) -> ElementType
pub fn element_count(self) -> u64
Trait Implementations§
Source§impl Clone for HostTransferLayout
impl Clone for HostTransferLayout
Source§fn clone(&self) -> HostTransferLayout
fn clone(&self) -> HostTransferLayout
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 moreimpl Copy for HostTransferLayout
Source§impl Debug for HostTransferLayout
impl Debug for HostTransferLayout
impl Eq for HostTransferLayout
Source§impl PartialEq for HostTransferLayout
impl PartialEq for HostTransferLayout
Source§impl Serialize for HostTransferLayout
impl Serialize for HostTransferLayout
impl StructuralPartialEq for HostTransferLayout
Auto Trait Implementations§
impl Freeze for HostTransferLayout
impl RefUnwindSafe for HostTransferLayout
impl Send for HostTransferLayout
impl Sync for HostTransferLayout
impl Unpin for HostTransferLayout
impl UnsafeUnpin for HostTransferLayout
impl UnwindSafe for HostTransferLayout
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