pub struct ContextRef<'s>(/* private fields */);
Expand description
Borrowed string containing a valid context.
Implementations§
Trait Implementations§
Source§impl<'s> Clone for ContextRef<'s>
impl<'s> Clone for ContextRef<'s>
Source§fn clone(&self) -> ContextRef<'s>
fn clone(&self) -> ContextRef<'s>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'s> Debug for ContextRef<'s>
impl<'s> Debug for ContextRef<'s>
Source§impl<'s> Hash for ContextRef<'s>
impl<'s> Hash for ContextRef<'s>
Source§impl<'s> Ord for ContextRef<'s>
impl<'s> Ord for ContextRef<'s>
Source§fn cmp(&self, other: &ContextRef<'s>) -> Ordering
fn cmp(&self, other: &ContextRef<'s>) -> 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<'s> PartialEq for ContextRef<'s>
impl<'s> PartialEq for ContextRef<'s>
Source§impl<'s> PartialOrd for ContextRef<'s>
impl<'s> PartialOrd for ContextRef<'s>
impl<'s> Copy for ContextRef<'s>
impl<'s> Eq for ContextRef<'s>
impl<'s> StructuralPartialEq for ContextRef<'s>
Auto Trait Implementations§
impl<'s> Freeze for ContextRef<'s>
impl<'s> RefUnwindSafe for ContextRef<'s>
impl<'s> Send for ContextRef<'s>
impl<'s> Sync for ContextRef<'s>
impl<'s> Unpin for ContextRef<'s>
impl<'s> UnwindSafe for ContextRef<'s>
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