[−][src]Struct eosio::BinaryExtension
Methods
impl<T> BinaryExtension<T>
[src]
pub const fn new(t: Option<T>) -> Self
[src]
pub fn as_value(&self) -> Option<&T>
[src]
pub fn into_value(self) -> Option<T>
[src]
Trait Implementations
impl<T: Clone> Clone for BinaryExtension<T>
[src]
fn clone(&self) -> BinaryExtension<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for BinaryExtension<T>
[src]
impl<T: Default> Default for BinaryExtension<T>
[src]
fn default() -> BinaryExtension<T>
[src]
impl<T> NumBytes for BinaryExtension<T> where
T: NumBytes,
[src]
T: NumBytes,
impl<T> Read for BinaryExtension<T> where
T: Read,
[src]
T: Read,
fn read(bytes: &[u8], pos: &mut usize) -> Result<Self, ReadError>
[src]
fn unpack<T: AsRef<[u8]>>(bytes: T) -> Result<Self, ReadError>
[src]
impl<T> Write for BinaryExtension<T> where
T: Write,
[src]
T: Write,
fn write(&self, bytes: &mut [u8], pos: &mut usize) -> Result<(), WriteError>
[src]
fn pack(&self) -> Result<Vec<u8>, WriteError>
[src]
Auto Trait Implementations
impl<T> Send for BinaryExtension<T> where
T: Send,
T: Send,
impl<T> Sync for BinaryExtension<T> where
T: Sync,
T: Sync,
impl<T> Unpin for BinaryExtension<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,