pub struct EdgeEdicts { /* private fields */ }Implementations§
Source§impl EdgeEdicts
impl EdgeEdicts
pub fn disposition(&self, edge: EdgeId) -> EdgeDisposition
pub fn toggle_required(&mut self, edge: EdgeId)
pub fn toggle_forbidden(&mut self, edge: EdgeId)
pub fn clear(&mut self)
pub fn is_empty(&self) -> bool
pub fn required_count(&self) -> usize
pub fn forbidden_count(&self) -> usize
pub fn required(&self) -> impl Iterator<Item = EdgeId> + '_
pub fn forbidden(&self) -> impl Iterator<Item = EdgeId> + '_
pub fn admits(&self, route: &Route) -> bool
pub fn validate(&self, graph: &WalkGraph) -> Result<()>
Trait Implementations§
Source§impl Clone for EdgeEdicts
impl Clone for EdgeEdicts
Source§fn clone(&self) -> EdgeEdicts
fn clone(&self) -> EdgeEdicts
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 EdgeEdicts
impl Debug for EdgeEdicts
Source§impl Default for EdgeEdicts
impl Default for EdgeEdicts
Source§fn default() -> EdgeEdicts
fn default() -> EdgeEdicts
Returns the “default value” for a type. Read more
impl Eq for EdgeEdicts
Source§impl PartialEq for EdgeEdicts
impl PartialEq for EdgeEdicts
impl StructuralPartialEq for EdgeEdicts
Auto Trait Implementations§
impl Freeze for EdgeEdicts
impl RefUnwindSafe for EdgeEdicts
impl Send for EdgeEdicts
impl Sync for EdgeEdicts
impl Unpin for EdgeEdicts
impl UnsafeUnpin for EdgeEdicts
impl UnwindSafe for EdgeEdicts
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.