Struct web3utilities::Utilities
source · [−]pub struct Utilities;
Expand description
Utilities
struct is used to group common methods for manipulation of bytes
Implementations
sourceimpl Utilities
impl Utilities
sourcepub fn to_12byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 12]>
pub fn to_12byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 12]>
Convert some bytes to a 12 byte array
sourcepub fn to_16byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 16]>
pub fn to_16byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 16]>
Convert some bytes to a 16 byte array
sourcepub fn to_24byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 24]>
pub fn to_24byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 24]>
Convert some bytes to a 24 byte array
sourcepub fn to_32byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 32]>
pub fn to_32byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 32]>
Convert some bytes to a 32 byte array
sourcepub fn to_64byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 64]>
pub fn to_64byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 64]>
Convert some bytes to a 64 byte array
sourcepub fn to_128byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 128]>
pub fn to_128byte_array(bytes: &[u8]) -> UtilitiesResult<[u8; 128]>
Convert some bytes to a 128 byte array
Auto Trait Implementations
impl RefUnwindSafe for Utilities
impl Send for Utilities
impl Sync for Utilities
impl Unpin for Utilities
impl UnwindSafe for Utilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more