pub struct ByteArray;Expand description
Lean’s ByteArray. The Lean object holds a Vec<u8>, so a value moves both ways.
Trait Implementations§
Source§impl Codec for ByteArray
impl Codec for ByteArray
Source§fn into_lean(value: Vec<u8>) -> Value<ByteArray>
fn into_lean(value: Vec<u8>) -> Value<ByteArray>
The Lean value of a Rust value that is given up. What can move is moved.
Source§fn to_lean(value: &Vec<u8>) -> Value<ByteArray>
fn to_lean(value: &Vec<u8>) -> Value<ByteArray>
The Lean value of a Rust value that stays with the caller. A copy.
Auto Trait Implementations§
impl Forget for ByteArray
impl Freeze for ByteArray
impl Move for ByteArray
impl RefUnwindSafe for ByteArray
impl Send for ByteArray
impl Sync for ByteArray
impl Unpin for ByteArray
impl UnsafeUnpin for ByteArray
impl UnwindSafe for ByteArray
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