Skip to main content

WeakPartialOrdering

Struct WeakPartialOrdering 

Source
pub struct WeakPartialOrdering<NodeId: Copy + Hash + Ord> { /* private fields */ }

Implementations§

Source§

impl<NodeId> WeakPartialOrdering<NodeId>
where NodeId: Copy + Hash + Ord + Debug,

Source

pub fn new<SN>(root: NodeId, size: usize, successors_nodes: &SN) -> Self
where SN: SuccessorNodes<NodeId = NodeId>,

Source

pub fn size(&self) -> usize

Source

pub fn get_entry(&self) -> WpoIdx

Source

pub fn get_successors(&self, idx: WpoIdx) -> &BTreeSet<WpoIdx>

Source

pub fn get_predecessors(&self, idx: WpoIdx) -> &BTreeSet<WpoIdx>

Source

pub fn get_num_preds(&self, idx: WpoIdx) -> u32

Source

pub fn get_num_outer_preds(&self, exit: WpoIdx) -> &HashMap<WpoIdx, u32>

Source

pub fn get_head_of_exit(&self, exit: WpoIdx) -> WpoIdx

Source

pub fn get_exit_of_head(&self, head: WpoIdx) -> WpoIdx

Source

pub fn get_node(&self, idx: WpoIdx) -> NodeId

Source

pub fn is_plain(&self, idx: WpoIdx) -> bool

Source

pub fn is_head(&self, idx: WpoIdx) -> bool

Source

pub fn is_exit(&self, idx: WpoIdx) -> bool

Source

pub fn is_from_outside(&self, head: NodeId, pred: NodeId) -> bool

Auto Trait Implementations§

§

impl<NodeId> Freeze for WeakPartialOrdering<NodeId>

§

impl<NodeId> RefUnwindSafe for WeakPartialOrdering<NodeId>
where NodeId: RefUnwindSafe,

§

impl<NodeId> Send for WeakPartialOrdering<NodeId>
where NodeId: Send,

§

impl<NodeId> Sync for WeakPartialOrdering<NodeId>
where NodeId: Sync,

§

impl<NodeId> Unpin for WeakPartialOrdering<NodeId>
where NodeId: Unpin,

§

impl<NodeId> UnsafeUnpin for WeakPartialOrdering<NodeId>

§

impl<NodeId> UnwindSafe for WeakPartialOrdering<NodeId>
where NodeId: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.