pub struct String {
    pub bytes: MoveVec<u8>,
}Expand description
The String struct holds a vector of bytes that all represent
valid ASCII characters. Note that these ASCII characters may not all
be printable. To determine if a String contains only “printable”
characters you should use the all_characters_printable predicate
defined in this module.
Fields§
§bytes: MoveVec<u8>Implementations§
Source§impl String
 
impl String
pub fn move_instance(self) -> MoveInstance<Self>
pub fn type_() -> StringTypeTag
Trait Implementations§
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
Source§impl MoveStruct for String
 
impl MoveStruct for String
type StructTag = StringTypeTag
Source§impl MoveType for String
 
impl MoveType for String
Source§impl StaticModule for String
 
impl StaticModule for String
fn module() -> Identifier
Source§impl StaticName for String
 
impl StaticName for String
fn name() -> Identifier
Source§impl StaticTypeParams for String
 
impl StaticTypeParams for String
fn type_params() -> Vec<TypeTag>
impl Eq for String
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 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