pub struct OwnedLocation { /* private fields */ }Expand description
Simple structure which mirrors std::panic::Location,
although owns file name and is freely movable around
Implementations§
Trait Implementations§
Source§impl Clone for OwnedLocation
impl Clone for OwnedLocation
Source§fn clone(&self) -> OwnedLocation
fn clone(&self) -> OwnedLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OwnedLocation
impl Debug for OwnedLocation
Source§impl Display for OwnedLocation
impl Display for OwnedLocation
Source§impl From<&Location<'_>> for OwnedLocation
impl From<&Location<'_>> for OwnedLocation
Source§impl Hash for OwnedLocation
impl Hash for OwnedLocation
Source§impl Ord for OwnedLocation
impl Ord for OwnedLocation
Source§fn cmp(&self, other: &OwnedLocation) -> Ordering
fn cmp(&self, other: &OwnedLocation) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for OwnedLocation
impl PartialEq for OwnedLocation
Source§fn eq(&self, other: &OwnedLocation) -> bool
fn eq(&self, other: &OwnedLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OwnedLocation
impl PartialOrd for OwnedLocation
impl Eq for OwnedLocation
impl StructuralPartialEq for OwnedLocation
Auto Trait Implementations§
impl Freeze for OwnedLocation
impl RefUnwindSafe for OwnedLocation
impl Send for OwnedLocation
impl Sync for OwnedLocation
impl Unpin for OwnedLocation
impl UnsafeUnpin for OwnedLocation
impl UnwindSafe for OwnedLocation
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