[][src]Struct varisat::variables::var_map::VarBiMap

pub struct VarBiMap {
    fwd: VarMap,
    bwd: VarMap,
}

A bidirectional mapping between variables.

This is initialized with the identity mapping over all variables. It is possible to remove variables from this mapping on both sides.

Fields

fwd: VarMapbwd: VarMap

Methods

impl VarBiMap[src]

pub fn fwd(&self) -> &VarMap[src]

Access the forward mapping.

pub fn bwd(&self) -> &VarMap[src]

Access the backward mapping.

pub fn fwd_mut(&mut self) -> VarBiMapMut[src]

Mutate the mapping in forward direction.

pub fn bwd_mut(&mut self) -> VarBiMapMut[src]

Mutate the mapping in backward direction.

Trait Implementations

impl Default for VarBiMap[src]

Auto Trait Implementations

impl Send for VarBiMap

impl Sync for VarBiMap

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference where
    Inner: Part,
    Outer: Part<PartType = Field<OuterFieldType>>,
    OuterFieldType: HasPart<Inner, RawTarget = OuterFieldType> + PartialRefTarget + ?Sized,
    Reference: HasPart<Outer> + ?Sized