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 for MaybeStaticStr<'a>
impl<'a> PartialEq for MaybeStaticStr<'a>
source§impl<'a> PartialOrd for MaybeStaticStr<'a>
impl<'a> PartialOrd for MaybeStaticStr<'a>
impl<'a> Copy for MaybeStaticStr<'a>
impl<'a> Eq for MaybeStaticStr<'a>
impl<'a> StructuralPartialEq for MaybeStaticStr<'a>
Auto Trait Implementations§
impl<'a> Freeze for MaybeStaticStr<'a>
impl<'a> RefUnwindSafe for MaybeStaticStr<'a>
impl<'a> Send for MaybeStaticStr<'a>
impl<'a> Sync for MaybeStaticStr<'a>
impl<'a> Unpin for MaybeStaticStr<'a>
impl<'a> UnwindSafe for MaybeStaticStr<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)