pub struct String {
pub bytes: MoveVec<u8>,
}
Expand description
Rust: prefer using Rust’s native String
which implements
MoveType
.
A String
holds a sequence of bytes which is guaranteed to be in utf8 format.
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