pub enum ByteArrayOddWordPad {
LeftPadding,
}Expand description
Enum controlling Padding behavior for odd byte arrays use by ByteArray
§Warning
This is NOT padding for the entire array meaning this does NOT how to fill the array to capacity with zeros
what this does is in case of odd byte arrays passed to the ByteArray constructor the first or last 8-bit word is padded
to the left or to the right accordingly
- Example left padding (default): 0xfeab123 becomes 0x0feab123
- Example right padding: 0xfeab123 becomes 0xfeab1230
Variants§
LeftPadding
Trait Implementations§
Source§impl Clone for ByteArrayOddWordPad
impl Clone for ByteArrayOddWordPad
Source§fn clone(&self) -> ByteArrayOddWordPad
fn clone(&self) -> ByteArrayOddWordPad
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ByteArrayOddWordPad
impl Debug for ByteArrayOddWordPad
Source§impl Default for ByteArrayOddWordPad
impl Default for ByteArrayOddWordPad
Source§fn default() -> ByteArrayOddWordPad
fn default() -> ByteArrayOddWordPad
Returns the “default value” for a type. Read more
Source§impl PartialEq for ByteArrayOddWordPad
impl PartialEq for ByteArrayOddWordPad
impl Copy for ByteArrayOddWordPad
impl Eq for ByteArrayOddWordPad
impl StructuralPartialEq for ByteArrayOddWordPad
Auto Trait Implementations§
impl Freeze for ByteArrayOddWordPad
impl RefUnwindSafe for ByteArrayOddWordPad
impl Send for ByteArrayOddWordPad
impl Sync for ByteArrayOddWordPad
impl Unpin for ByteArrayOddWordPad
impl UnwindSafe for ByteArrayOddWordPad
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