[][src]Struct flag_algebra::flags::Colored

pub struct Colored<F, N> {
    pub content: F,
    pub color: Vec<u8>,
    // some fields omitted
}

A type for colored flags

Fields

content: Fcolor: Vec<u8>

Implementations

impl<A, E> Colored<CGraph<E>, A>[src]

pub fn size(&self) -> usize[src]

pub fn is_edge(&self, u: usize, v: usize) -> bool[src]

pub fn edge(&self, u: usize, v: usize) -> u8[src]

impl<F, N> Colored<F, N> where
    N: Unsigned,
    F: Canonize
[src]

pub fn new(content: F, color: Vec<u8>) -> Self[src]

Trait Implementations

impl<F, N> Canonize for Colored<F, N> where
    F: Flag,
    N: Unsigned + Clone + Eq + Ord
[src]

impl<F: Clone, N: Clone> Clone for Colored<F, N>[src]

impl<F: Debug, N: Debug> Debug for Colored<F, N>[src]

impl<'de, F, N> Deserialize<'de> for Colored<F, N> where
    F: Deserialize<'de>, 
[src]

impl<F: Flag, N> Display for Colored<F, N>[src]

impl<F, A> Draw for Colored<F, A> where
    F: Draw
[src]

impl<F: Eq, N: Eq> Eq for Colored<F, N>[src]

impl<F, N> Flag for Colored<F, N> where
    F: Flag,
    N: Unsigned + Clone + Eq + Ord + Debug
[src]

fn induce(&self, set: &[usize]) -> Self[src]

Returns the subflag induced by the vertices in the slice set.

impl<F: Hash, N: Hash> Hash for Colored<F, N>[src]

impl<F: Ord, N: Ord> Ord for Colored<F, N>[src]

impl<F: PartialEq, N: PartialEq> PartialEq<Colored<F, N>> for Colored<F, N>[src]

impl<F: PartialOrd, N: PartialOrd> PartialOrd<Colored<F, N>> for Colored<F, N>[src]

impl<F, N> Serialize for Colored<F, N> where
    F: Serialize
[src]

impl<F, N> StructuralEq for Colored<F, N>[src]

impl<F, N> StructuralPartialEq for Colored<F, N>[src]

Auto Trait Implementations

impl<F, N> RefUnwindSafe for Colored<F, N> where
    F: RefUnwindSafe,
    N: RefUnwindSafe

impl<F, N> Send for Colored<F, N> where
    F: Send,
    N: Send

impl<F, N> Sync for Colored<F, N> where
    F: Sync,
    N: Sync

impl<F, N> Unpin for Colored<F, N> where
    F: Unpin,
    N: Unpin

impl<F, N> UnwindSafe for Colored<F, N> where
    F: UnwindSafe,
    N: UnwindSafe

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<F> Html for F where
    F: Draw
[src]

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

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,