pub enum LinkDirection {
Outgoing,
Incoming,
Both,
}Expand description
Direction for neighbor queries.
Variants§
Outgoing
Only outgoing links (from_ref matches).
Incoming
Only incoming links (to_ref matches).
Both
Both directions.
Trait Implementations§
Source§impl Clone for LinkDirection
impl Clone for LinkDirection
Source§fn clone(&self) -> LinkDirection
fn clone(&self) -> LinkDirection
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 moreimpl Copy for LinkDirection
Source§impl Debug for LinkDirection
impl Debug for LinkDirection
Source§impl Default for LinkDirection
impl Default for LinkDirection
Source§fn default() -> LinkDirection
fn default() -> LinkDirection
Returns the “default value” for a type. Read more
impl Eq for LinkDirection
Source§impl PartialEq for LinkDirection
impl PartialEq for LinkDirection
Source§fn eq(&self, other: &LinkDirection) -> bool
fn eq(&self, other: &LinkDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinkDirection
Auto Trait Implementations§
impl Freeze for LinkDirection
impl RefUnwindSafe for LinkDirection
impl Send for LinkDirection
impl Sync for LinkDirection
impl Unpin for LinkDirection
impl UnsafeUnpin for LinkDirection
impl UnwindSafe for LinkDirection
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