pub enum PageBlockVerticalAlignment {
Bottom(PageBlockVerticalAlignmentBottom),
Middle(PageBlockVerticalAlignmentMiddle),
Top(PageBlockVerticalAlignmentTop),
// some variants omitted
}
Expand description
Describes a Vertical alignment of a table cell content
Variants§
Bottom(PageBlockVerticalAlignmentBottom)
The content must be bottom-aligned
Middle(PageBlockVerticalAlignmentMiddle)
The content must be middle-aligned
Top(PageBlockVerticalAlignmentTop)
The content must be top-aligned
Implementations§
Source§impl PageBlockVerticalAlignment
impl PageBlockVerticalAlignment
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
pub fn is_bottom(&self) -> bool
pub fn is_middle(&self) -> bool
pub fn is_top(&self) -> bool
pub fn on_bottom<F: FnOnce(&PageBlockVerticalAlignmentBottom)>( &self, fnc: F, ) -> &Self
pub fn on_middle<F: FnOnce(&PageBlockVerticalAlignmentMiddle)>( &self, fnc: F, ) -> &Self
pub fn on_top<F: FnOnce(&PageBlockVerticalAlignmentTop)>(&self, fnc: F) -> &Self
pub fn as_bottom(&self) -> Option<&PageBlockVerticalAlignmentBottom>
pub fn as_middle(&self) -> Option<&PageBlockVerticalAlignmentMiddle>
pub fn as_top(&self) -> Option<&PageBlockVerticalAlignmentTop>
pub fn bottom<T: AsRef<PageBlockVerticalAlignmentBottom>>(t: T) -> Self
pub fn middle<T: AsRef<PageBlockVerticalAlignmentMiddle>>(t: T) -> Self
pub fn top<T: AsRef<PageBlockVerticalAlignmentTop>>(t: T) -> Self
Trait Implementations§
Source§impl AsRef<PageBlockVerticalAlignment> for PageBlockVerticalAlignment
impl AsRef<PageBlockVerticalAlignment> for PageBlockVerticalAlignment
Source§fn as_ref(&self) -> &PageBlockVerticalAlignment
fn as_ref(&self) -> &PageBlockVerticalAlignment
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for PageBlockVerticalAlignment
impl Clone for PageBlockVerticalAlignment
Source§fn clone(&self) -> PageBlockVerticalAlignment
fn clone(&self) -> PageBlockVerticalAlignment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PageBlockVerticalAlignment
impl Debug for PageBlockVerticalAlignment
Source§impl Default for PageBlockVerticalAlignment
impl Default for PageBlockVerticalAlignment
Source§impl<'de> Deserialize<'de> for PageBlockVerticalAlignment
impl<'de> Deserialize<'de> for PageBlockVerticalAlignment
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PageBlockVerticalAlignment, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PageBlockVerticalAlignment, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl RObject for PageBlockVerticalAlignment
impl RObject for PageBlockVerticalAlignment
Auto Trait Implementations§
impl Freeze for PageBlockVerticalAlignment
impl RefUnwindSafe for PageBlockVerticalAlignment
impl Send for PageBlockVerticalAlignment
impl Sync for PageBlockVerticalAlignment
impl Unpin for PageBlockVerticalAlignment
impl UnwindSafe for PageBlockVerticalAlignment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more