Skip to main content

StrSurrogate

Struct StrSurrogate 

Source
pub struct StrSurrogate(/* private fields */);

Implementations§

Trait Implementations§

Source§

impl Debug for StrSurrogate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for StrSurrogate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl RefCast for StrSurrogate

Source§

type From = str

Source§

fn ref_cast(_from: &Self::From) -> &Self

Source§

fn ref_cast_mut(_from: &mut Self::From) -> &mut Self

Source§

impl Serialize for StrSurrogate

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'__lifetime> Surrogate for &'__lifetime StrSurrogate

Source§

type Real = &'__lifetime str

Source§

fn into_real(self) -> Self::Real

Source§

impl<'__lifetime> Surrogate for &'__lifetime mut StrSurrogate

Source§

type Real = &'__lifetime mut str

Source§

fn into_real(self) -> Self::Real

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more