pub struct Style(pub u64);Tuple Fields§
§0: u64Implementations§
Source§impl Style
impl Style
pub const fn text_color_idx(self) -> u8
pub const fn bg_color_idx(self) -> u8
pub const fn font_size(self) -> u8
pub const fn text_align(self) -> u8
pub const fn display_type(self) -> u8
pub const fn position_type(self) -> u8
pub const fn flags(self) -> u8
pub const fn is_link(self) -> bool
pub const fn is_image(self) -> bool
pub const fn is_input(self) -> bool
pub const fn is_clickable(self) -> bool
Trait Implementations§
impl Copy for Style
Source§impl<'de> Deserialize<'de> for Style
impl<'de> Deserialize<'de> for Style
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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