Trait xscript::CmdString

source ·
pub trait CmdString: 'static + Debug + Clone + Default + Eq + Hash + Sealed
where Self: AsRef<Self::Str> + AsRef<OsStr> + Deref<Target = Self::Str> + Borrow<Self::Str>,
{ type Str: ?Sized + ToOwned<Owned = Self> + AsRef<OsStr> + AsRef<Self::Str> + Eq + Hash + ToStringLossy; // Required method fn from_str(string: &str) -> &Self::Str; }
Expand description

A string type that can be used to construct commands.

Required Associated Types§

source

type Str: ?Sized + ToOwned<Owned = Self> + AsRef<OsStr> + AsRef<Self::Str> + Eq + Hash + ToStringLossy

Unsized equivalent for references.

Required Methods§

source

fn from_str(string: &str) -> &Self::Str

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CmdString for String

§

type Str = str

source§

fn from_str(string: &str) -> &Self::Str

source§

impl CmdString for OsString

§

type Str = OsStr

source§

fn from_str(string: &str) -> &Self::Str

Implementors§