pub struct DefaultLocation;Expand description
Default location type that does nothing.
Trait Implementations§
Source§impl Clone for DefaultLocation
impl Clone for DefaultLocation
Source§fn clone(&self) -> DefaultLocation
fn clone(&self) -> DefaultLocation
Returns a duplicate 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 Debug for DefaultLocation
impl Debug for DefaultLocation
Source§impl Default for DefaultLocation
impl Default for DefaultLocation
Source§fn default() -> DefaultLocation
fn default() -> DefaultLocation
Returns the “default value” for a type. Read more
Source§impl Location for DefaultLocation
impl Location for DefaultLocation
Source§fn new<'a>(
_stack: impl Iterator<Item = &'a DefaultLocation> + Clone,
_len: usize,
) -> DefaultLocation
fn new<'a>( _stack: impl Iterator<Item = &'a DefaultLocation> + Clone, _len: usize, ) -> DefaultLocation
Create a new merged location from
len elements in the stack.
The stack iterator should yield child locations in reverse order.
That is, if the input [a, b, c, …, z] is fed and len is 3,
stack.next() will yield z, then y, then x,
and this function should return the merged location of [x, y, z].Source§impl Ord for DefaultLocation
impl Ord for DefaultLocation
Source§fn cmp(&self, other: &DefaultLocation) -> Ordering
fn cmp(&self, other: &DefaultLocation) -> 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 PartialEq for DefaultLocation
impl PartialEq for DefaultLocation
Source§impl PartialOrd for DefaultLocation
impl PartialOrd for DefaultLocation
impl Copy for DefaultLocation
impl Eq for DefaultLocation
impl StructuralPartialEq for DefaultLocation
Auto Trait Implementations§
impl Freeze for DefaultLocation
impl RefUnwindSafe for DefaultLocation
impl Send for DefaultLocation
impl Sync for DefaultLocation
impl Unpin for DefaultLocation
impl UnwindSafe for DefaultLocation
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