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

pub struct VarBiMapMut<'a> {
    fwd: &'a mut VarMap,
    bwd: &'a mut VarMap,
}

Mutable view of a VarBiMap.

Helper so VarBiMap mutating routines can work in both directions.

Fields

fwd: &'a mut VarMapbwd: &'a mut VarMap

Methods

impl<'a> VarBiMapMut<'a>[src]

pub fn insert(&mut self, into: Var, from: Var)[src]

Insert a new mapping.

Note that the parameters are reversed from the usual order, to match the naming convention used for maps.

This has the precondition that into and from are not mapped.

pub fn remove(&mut self, from: Var) -> Option<Var>[src]

Remove a mapping.

Does nothing if from is not mapped.

Returns the existing mapping if it was present.

Auto Trait Implementations

impl<'a> Send for VarBiMapMut<'a>

impl<'a> Sync for VarBiMapMut<'a>

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