[][src]Struct gf::isa::FeatureMap

pub struct FeatureMap { /* fields omitted */ }

Map from feature IDs to bit vector values.

Methods

impl FeatureMap[src]

pub fn new() -> Self[src]

Create an empty feature map.

pub fn get(&self, id: FeatureId) -> Option<&BitVec>[src]

Get feature value.

pub fn set(&mut self, id: FeatureId, value: BitVec)[src]

Set feature value.

pub fn remove(&mut self, id: FeatureId)[src]

Remove feature value.

pub fn iter(&self) -> impl Iterator<Item = (FeatureId, &BitVec)>[src]

Return an iterator over ID-value pairs in the map.

pub fn iter_mut(&mut self) -> impl Iterator<Item = (FeatureId, &mut BitVec)>[src]

Return a mutable iterator over ID-value pairs in the map.

Trait Implementations

impl Clone for FeatureMap[src]

impl Default for FeatureMap[src]

impl Eq for FeatureMap[src]

impl PartialEq<FeatureMap> for FeatureMap[src]

impl Debug for FeatureMap[src]

impl StructuralPartialEq for FeatureMap[src]

impl StructuralEq for FeatureMap[src]

Auto Trait Implementations

impl Send for FeatureMap

impl Sync for FeatureMap

impl Unpin for FeatureMap

impl UnwindSafe for FeatureMap

impl RefUnwindSafe for FeatureMap

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]