Struct abjad::AbjadPrefs[][src]

pub struct AbjadPrefs {
    pub count_shaddah: bool,
    pub double_alif_maddah: bool,
    pub ignore_lone_hamzah: bool,
    pub maghribi_order: bool,
}

We need to allow some options for abjad calculation. At present there are four. All are false by default. If you don’t need to activate any of them, when calling one of the methods, you can input Default::default().

Fields

count_shaddah: bool

Count the shaddah diacritic? This will have the effect of doubling the value of the preceding letter.

double_alif_maddah: bool

Count alif maddah as a double alif (with value 2 instead of 1)?

ignore_lone_hamzah: bool

Ignore the pseudo-letter hamzah in its isolated state? (By default it has a value of 1.)

maghribi_order: bool

Use the Maghribi letter order? (Unless you’re sure you need this, you don’t.)

Trait Implementations

impl Default for AbjadPrefs[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, 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.