[−][src]Struct kstring::KStringRef
A reference to a UTF-8 encoded, immutable string.
Methods
impl<'s> KStringRef<'s>[src]
pub fn new() -> Self[src]
Create a new empty KString.
pub fn from_ref(other: &'s str) -> Self[src]
Create a reference to a borrowed data.
pub fn from_static(other: &'static str) -> Self[src]
Create a reference to a 'static data.
pub fn to_owned(&self) -> KString[src]
Clone the data into an owned-type.
pub fn as_str(&self) -> &str[src]
Extracts a string slice containing the entire KStringRef.
pub fn into_mut(self) -> String[src]
Convert to a mutable string type, cloning the data if necessary.
Trait Implementations
impl<'s> AsRef<[u8]> for KStringRef<'s>[src]
impl<'s> AsRef<OsStr> for KStringRef<'s>[src]
impl<'s> AsRef<Path> for KStringRef<'s>[src]
impl<'s> AsRef<str> for KStringRef<'s>[src]
impl<'s> Borrow<str> for KStringRef<'s>[src]
impl<'s> Clone for KStringRef<'s>[src]
fn clone(&self) -> KStringRef<'s>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'s> Copy for KStringRef<'s>[src]
impl<'s> Debug for KStringRef<'s>[src]
impl<'s> Default for KStringRef<'s>[src]
impl<'s> Deref for KStringRef<'s>[src]
impl<'de: 's, 's> Deserialize<'de> for KStringRef<'s>[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl<'s> Display for KStringRef<'s>[src]
impl<'s> Eq for KStringRef<'s>[src]
impl<'s> From<&'s Box<str>> for KStringRef<'s>[src]
impl<'s> From<&'s KString> for KStringRef<'s>[src]
impl<'s> From<&'s KStringCow<'s>> for KStringRef<'s>[src]
fn from(other: &'s KStringCow<'s>) -> Self[src]
impl<'s> From<&'s KStringRef<'s>> for KStringCow<'s>[src]
fn from(other: &'s KStringRef<'s>) -> Self[src]
impl<'s> From<&'s KStringRef<'s>> for KString[src]
fn from(other: &'s KStringRef<'s>) -> Self[src]
impl<'s> From<&'s String> for KStringRef<'s>[src]
impl<'s> From<&'s str> for KStringRef<'s>[src]
impl<'s> From<KStringRef<'s>> for KStringCow<'s>[src]
fn from(other: KStringRef<'s>) -> Self[src]
impl<'s> From<KStringRef<'s>> for KString[src]
fn from(other: KStringRef<'s>) -> Self[src]
impl<'s> Hash for KStringRef<'s>[src]
fn hash<H: Hasher>(&self, state: &mut H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<'s> Ord for KStringRef<'s>[src]
fn cmp(&self, other: &Self) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl<'s> PartialEq<&'s str> for KStringRef<'s>[src]
impl<'s> PartialEq<KStringRef<'s>> for KStringRef<'s>[src]
fn eq(&self, other: &KStringRef<'s>) -> bool[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'s> PartialEq<String> for KStringRef<'s>[src]
impl<'s> PartialEq<str> for KStringRef<'s>[src]
impl<'s> PartialOrd<KStringRef<'s>> for KStringRef<'s>[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<'s> Serialize for KStringRef<'s>[src]
Auto Trait Implementations
impl<'s> RefUnwindSafe for KStringRef<'s>
impl<'s> Send for KStringRef<'s>
impl<'s> Sync for KStringRef<'s>
impl<'s> Unpin for KStringRef<'s>
impl<'s> UnwindSafe for KStringRef<'s>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,