Enum tvm::runtime::ByteArray [−][src]
pub enum ByteArray {
Rust(TVMByteArray),
External(TVMByteArray),
}
Expand description
A newtype wrapping a raw TVM byte-array.
Example
let v = b"hello";
let barr = tvm_sys::ByteArray::from(&v);
assert_eq!(barr.len(), v.len());
assert_eq!(barr.data(), &[104u8, 101, 108, 108, 111]);
Variants
Rust(TVMByteArray)
Tuple Fields
0: TVMByteArray
External(TVMByteArray)
Tuple Fields
0: TVMByteArray
Implementations
Gets the underlying byte-array
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ByteArray
impl UnwindSafe for ByteArray
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more