[][src]Enum iching::trigram::TrigramName

pub enum TrigramName {
    Dui,
    Gen,
    Kan,
    Kun,
    Li,
    Qian,
    Xun,
    Zhen,
}

Named trigrams according to the Bagua. This represents a "settled" Trigram that will not "change."

Variants

DuiGenKanKunLiQianXunZhen

Methods

impl TrigramName[src]

pub fn symbol(&self) -> &str[src]

Get the unicode trigram symbol corresponding to this TrigramName.

pub fn romanized(&self) -> String[src]

Get the romanized pronunciation of the TrigramName.

pub fn english_translation(&self) -> String[src]

Get the English translation of the TrigramName.

pub fn attribute(&self) -> String[src]

Get the attribute that the TrigramName represents.

pub fn image(&self) -> String[src]

Get the image that the TrigramName represents.

pub fn family_relationship(&self) -> String[src]

Get the family relationship that the TrigramName represents.

pub fn from_usize(number: usize) -> Result<Self, TrigramError>[src]

Create a new TrigramName from the trigram's rank/index.

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

Get a TrigramName's rank/index in the Bagua.

Trait Implementations

impl Clone for TrigramName[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for TrigramName[src]

impl Debug for TrigramName[src]

impl<'de> Deserialize<'de> for TrigramName[src]

Auto Trait Implementations

impl Send for TrigramName

impl Sync for TrigramName

Blanket Implementations

impl<T, U> Into 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> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]