Struct Str

struct Str { ... }

A UTF-8-encoded fixed string

NOTE: To support dynamic values (i.e. String), enable the string feature

Implementations

impl Str

fn as_str(self: &Self) -> &str

Get the raw string of the Str

impl AsRef for Str

fn as_ref(self: &Self) -> &[u8]

impl AsRef for Str

fn as_ref(self: &Self) -> &str

impl AsRef for Str

fn as_ref(self: &Self) -> &Path

impl AsRef for Str

fn as_ref(self: &Self) -> &OsStr

impl Borrow for Str

fn borrow(self: &Self) -> &str

impl Clone for Str

fn clone(self: &Self) -> Str

impl Debug for Str

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

impl Default for Str

fn default() -> Str

impl Deref for Str

fn deref(self: &Self) -> &str

impl Display for Str

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

impl Eq for Str

impl Freeze for Str

impl From for Str

fn from(name: &&'static str) -> Self

impl From for Str

fn from(name: &'static str) -> Self

impl From for Str

fn from(id: &Str) -> Self

impl From for Str

fn from(name: Id) -> Self

impl Hash for Str

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl Ord for Str

fn cmp(self: &Self, other: &Str) -> Ordering

impl PartialEq for Str

fn eq(self: &Self, other: &String) -> bool

impl PartialEq for Str

fn eq(self: &Self, other: &OsStr) -> bool

impl PartialEq for Str

fn eq(self: &Self, other: &str) -> bool

impl PartialEq for Str

fn eq(self: &Self, other: &Id) -> bool

impl PartialEq for Str

fn eq(self: &Self, other: &&OsStr) -> bool

impl PartialEq for Str

fn eq(self: &Self, other: &&str) -> bool

impl PartialEq for Str

fn eq(self: &Self, other: &Str) -> bool

impl PartialOrd for Str

fn partial_cmp(self: &Self, other: &Str) -> Option<Ordering>

impl RefUnwindSafe for Str

impl Send for Str

impl StructuralPartialEq for Str

impl Sync for Str

impl Unpin for Str

impl UnsafeUnpin for Str

impl UnwindSafe for Str

impl<I> IntoResettable for Str

fn into_resettable(self: Self) -> Resettable<Str>

impl<I> IntoResettable for Str

fn into_resettable(self: Self) -> Resettable<String>

impl<I> IntoResettable for Str

fn into_resettable(self: Self) -> Resettable<Id>

impl<I> IntoResettable for Str

fn into_resettable(self: Self) -> Resettable<OsStr>

impl<P, T> Receiver for Str

impl<T> Any for Str

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Str

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Str

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

impl<T> CloneToUninit for Str

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Str

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Str

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for Str

fn to_string(self: &Self) -> String

impl<T, U> Into for Str

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Str

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Str

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>