pub struct String {
pub bytes: Vec<u8>,
}Expand description
A String holds a sequence of bytes which is guaranteed to be in utf8
format.
Fields§
§bytes: Vec<u8>Implementations§
Trait Implementations§
Source§impl ConstStructTag for String
impl ConstStructTag for String
const STRUCT_TAG: StringTypeTag
Source§impl<'de> Deserialize<'de> for String
impl<'de> Deserialize<'de> for String
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for String
Source§impl MoveDatatype for String
impl MoveDatatype for String
type StructTag = StringTypeTag
impl StructuralPartialEq for String
Auto Trait Implementations§
impl Freeze for String
impl RefUnwindSafe for String
impl Send for String
impl Sync for String
impl Unpin for String
impl UnsafeUnpin for String
impl UnwindSafe for String
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