[][src]Enum rtdlib::types::PageBlockVerticalAlignment

pub enum PageBlockVerticalAlignment {
    Bottom(PageBlockVerticalAlignmentBottom),
    Middle(PageBlockVerticalAlignmentMiddle),
    Top(PageBlockVerticalAlignmentTop),
    // some variants omitted
}

Describes a Vertical alignment of a table cell content

Variants

The content should be bottom-aligned

The content should be middle-aligned

The content should be top-aligned

Implementations

impl PageBlockVerticalAlignment[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn is_bottom(&self) -> bool[src]

pub fn is_middle(&self) -> bool[src]

pub fn is_top(&self) -> bool[src]

pub fn on_bottom<F: FnOnce(&PageBlockVerticalAlignmentBottom)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_middle<F: FnOnce(&PageBlockVerticalAlignmentMiddle)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_top<F: FnOnce(&PageBlockVerticalAlignmentTop)>(&self, fnc: F) -> &Self[src]

pub fn as_bottom(&self) -> Option<&PageBlockVerticalAlignmentBottom>[src]

pub fn as_middle(&self) -> Option<&PageBlockVerticalAlignmentMiddle>[src]

pub fn as_top(&self) -> Option<&PageBlockVerticalAlignmentTop>[src]

pub fn bottom<T: AsRef<PageBlockVerticalAlignmentBottom>>(t: T) -> Self[src]

pub fn middle<T: AsRef<PageBlockVerticalAlignmentMiddle>>(t: T) -> Self[src]

pub fn top<T: AsRef<PageBlockVerticalAlignmentTop>>(t: T) -> Self[src]

Trait Implementations

impl AsRef<PageBlockVerticalAlignment> for PageBlockVerticalAlignment[src]

impl Clone for PageBlockVerticalAlignment[src]

impl Debug for PageBlockVerticalAlignment[src]

impl Default for PageBlockVerticalAlignment[src]

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

impl RObject for PageBlockVerticalAlignment[src]

impl Serialize for PageBlockVerticalAlignment[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.