Struct mech_core::MechString
source · pub struct MechString { /* private fields */ }
Implementations§
source§impl MechString
impl MechString
pub fn new() -> MechString
pub fn from_string(string: String) -> MechString
pub fn from_str(string: &str) -> MechString
pub fn from_chars(chars: &Vec<char>) -> MechString
pub fn len(&self) -> usize
pub fn to_string(&self) -> String
pub fn hash(&self) -> u64
Trait Implementations§
source§impl Clone for MechString
impl Clone for MechString
source§fn clone(&self) -> MechString
fn clone(&self) -> MechString
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 MechString
impl Debug for MechString
source§impl<'de> Deserialize<'de> for MechString
impl<'de> Deserialize<'de> for MechString
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 From<MechString> for Value
impl From<MechString> for Value
source§fn from(n: MechString) -> Value
fn from(n: MechString) -> Value
Converts to this type from the input type.
source§impl From<bool> for MechString
impl From<bool> for MechString
source§fn from(n: bool) -> MechString
fn from(n: bool) -> MechString
Converts to this type from the input type.
source§impl PartialEq<MechString> for MechString
impl PartialEq<MechString> for MechString
source§fn eq(&self, other: &MechString) -> bool
fn eq(&self, other: &MechString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MechString> for MechString
impl PartialOrd<MechString> for MechString
source§fn partial_cmp(&self, other: &MechString) -> Option<Ordering>
fn partial_cmp(&self, other: &MechString) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more