Enum symcode::acute32::GlyphLabel[][src]

pub enum GlyphLabel {
    Invalid,
    LongRR,
    LongDD,
    LongLL,
    LongUU,
    LongRL,
    LongDU,
    LongLR,
    LongUD,
    SmallDoubleUD,
    SmallDoubleRL,
    SmallDoubleDU,
    SmallDoubleLR,
    DoubleTallDiamond,
    StackedFatDiamond,
    FourTriangles,
    FourKites,
    ArrowRR,
    ArrowDD,
    ArrowLL,
    ArrowUU,
    ArrowRL,
    ArrowDU,
    FatDiamond,
    TallDiamond,
    SmallTripleU,
    SmallTripleR,
    SmallTripleD,
    SmallTripleL,
    TriforceD,
    TriforceL,
    TriforceU,
    TriforceR,
    Last,
}

Useful for testing purposes only.

For a given alphabet image, the index should go from top to bottom, left to right.

Variants

Invalid
LongRR
LongDD
LongLL
LongUU
LongRL
LongDU
LongLR
LongUD
SmallDoubleUD
SmallDoubleRL
SmallDoubleDU
SmallDoubleLR
DoubleTallDiamond
StackedFatDiamond
FourTriangles
FourKites
ArrowRR
ArrowDD
ArrowLL
ArrowUU
ArrowRL
ArrowDU
FatDiamond
TallDiamond
SmallTripleU
SmallTripleR
SmallTripleD
SmallTripleL
TriforceD
TriforceL
TriforceU
TriforceR
Last

Implementations

impl GlyphLabel[src]

pub fn num_variants() -> usize[src]

Number of valid variants (empty + all valid glyphs)

pub fn from_usize_representation(label: usize) -> Self[src]

pub fn self_to_primitive(label: Self) -> Option<usize>[src]

pub fn self_to_bit_vec(label: Self, length: usize) -> Option<BitVec>[src]

pub fn bit_vec_to_primitive(bit_vec: BitVec) -> usize[src]

pub fn from_bit_vec(bit_vec: BitVec) -> Self[src]

Trait Implementations

impl Clone for GlyphLabel[src]

impl Copy for GlyphLabel[src]

impl Debug for GlyphLabel[src]

impl Default for GlyphLabel[src]

impl FromPrimitive for GlyphLabel[src]

impl PartialEq<GlyphLabel> for GlyphLabel[src]

impl StructuralPartialEq for GlyphLabel[src]

impl ToPrimitive for GlyphLabel[src]

Auto Trait Implementations

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.