pub struct Bytes<const BIG_ENDIAN: bool = true> {
pub vec: Vector<u8>,
}
Fields§
§vec: Vector<u8>
Implementations§
Source§impl<const BE: bool> Bytes<BE>
impl<const BE: bool> Bytes<BE>
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn to_int128(&self) -> Result<i128, String>
pub fn to_bin(&self) -> Bins
pub fn to_hex(&self) -> Hex
pub fn from_bytes(from: &[u8]) -> Self
pub fn from_int(from: &i128) -> Self
pub fn from_bins(from: &Bins) -> Self
pub fn from_hex(from: &Hex) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<const BIG_ENDIAN: bool> Freeze for Bytes<BIG_ENDIAN>
impl<const BIG_ENDIAN: bool> RefUnwindSafe for Bytes<BIG_ENDIAN>
impl<const BIG_ENDIAN: bool = true> !Send for Bytes<BIG_ENDIAN>
impl<const BIG_ENDIAN: bool = true> !Sync for Bytes<BIG_ENDIAN>
impl<const BIG_ENDIAN: bool> Unpin for Bytes<BIG_ENDIAN>
impl<const BIG_ENDIAN: bool> UnwindSafe for Bytes<BIG_ENDIAN>
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