Struct minetest_protocol::wire::types::ByteString
source · pub struct ByteString(pub Vec<u8>);
Expand description
Rust String’s must be valid UTF8. But Minetest’s strings can contain arbitrary
binary data. The only way to store arbitrary bytes is with something like Vec
Tuple Fields§
§0: Vec<u8>
Implementations§
Trait Implementations§
source§impl Clone for ByteString
impl Clone for ByteString
source§fn clone(&self) -> ByteString
fn clone(&self) -> ByteString
Returns a copy 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 ByteString
impl Debug for ByteString
source§impl From<&[u8]> for ByteString
impl From<&[u8]> for ByteString
source§impl PartialEq<ByteString> for ByteString
impl PartialEq<ByteString> for ByteString
source§fn eq(&self, other: &ByteString) -> bool
fn eq(&self, other: &ByteString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.