pub struct NeoByteString { /* private fields */ }Expand description
Neo N3 ByteString type
Implementations§
Source§impl NeoByteString
impl NeoByteString
pub fn new(data: Vec<u8>) -> NeoByteString
pub fn from_slice(slice: &[u8]) -> NeoByteString
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&mut self, byte: u8)
pub fn extend_from_slice(&mut self, slice: &[u8])
Trait Implementations§
Source§impl AsRef<[u8]> for NeoByteString
impl AsRef<[u8]> for NeoByteString
Source§impl Clone for NeoByteString
impl Clone for NeoByteString
Source§fn clone(&self) -> NeoByteString
fn clone(&self) -> NeoByteString
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 NeoByteString
impl Debug for NeoByteString
Source§impl Default for NeoByteString
impl Default for NeoByteString
Source§fn default() -> NeoByteString
fn default() -> NeoByteString
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NeoByteString
impl<'de> Deserialize<'de> for NeoByteString
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NeoByteString, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NeoByteString, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Extend<u8> for NeoByteString
impl Extend<u8> for NeoByteString
Source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = u8>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = u8>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<&[u8]> for NeoByteString
impl From<&[u8]> for NeoByteString
Source§fn from(slice: &[u8]) -> NeoByteString
fn from(slice: &[u8]) -> NeoByteString
Converts to this type from the input type.
Source§impl From<NeoByteString> for NeoValue
impl From<NeoByteString> for NeoValue
Source§fn from(value: NeoByteString) -> NeoValue
fn from(value: NeoByteString) -> NeoValue
Converts to this type from the input type.
Source§impl FromIterator<u8> for NeoByteString
impl FromIterator<u8> for NeoByteString
Source§fn from_iter<I>(iter: I) -> NeoByteStringwhere
I: IntoIterator<Item = u8>,
fn from_iter<I>(iter: I) -> NeoByteStringwhere
I: IntoIterator<Item = u8>,
Creates a value from an iterator. Read more
Source§impl PartialEq for NeoByteString
impl PartialEq for NeoByteString
Source§impl Serialize for NeoByteString
impl Serialize for NeoByteString
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for NeoByteString
impl StructuralPartialEq for NeoByteString
Auto Trait Implementations§
impl Freeze for NeoByteString
impl RefUnwindSafe for NeoByteString
impl Send for NeoByteString
impl Sync for NeoByteString
impl Unpin for NeoByteString
impl UnwindSafe for NeoByteString
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