Enum log::MaybeStaticStr
source · pub(crate) enum MaybeStaticStr<'a> {
Static(&'static str),
Borrowed(&'a str),
}
Variants§
Implementations§
Trait Implementations§
source§impl<'a> Clone for MaybeStaticStr<'a>
impl<'a> Clone for MaybeStaticStr<'a>
source§fn clone(&self) -> MaybeStaticStr<'a>
fn clone(&self) -> MaybeStaticStr<'a>
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<'a> Debug for MaybeStaticStr<'a>
impl<'a> Debug for MaybeStaticStr<'a>
source§impl<'a> Hash for MaybeStaticStr<'a>
impl<'a> Hash for MaybeStaticStr<'a>
source§impl<'a> Ord for MaybeStaticStr<'a>
impl<'a> Ord for MaybeStaticStr<'a>
source§fn cmp(&self, other: &MaybeStaticStr<'a>) -> Ordering
fn cmp(&self, other: &MaybeStaticStr<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq<MaybeStaticStr<'a>> for MaybeStaticStr<'a>
impl<'a> PartialEq<MaybeStaticStr<'a>> for MaybeStaticStr<'a>
source§fn eq(&self, other: &MaybeStaticStr<'a>) -> bool
fn eq(&self, other: &MaybeStaticStr<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd<MaybeStaticStr<'a>> for MaybeStaticStr<'a>
impl<'a> PartialOrd<MaybeStaticStr<'a>> for MaybeStaticStr<'a>
source§fn partial_cmp(&self, other: &MaybeStaticStr<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &MaybeStaticStr<'a>) -> 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