pub struct RootTextRoles { /* private fields */ }Expand description
Independent root and embedded Plot headings.
Implementations§
Source§impl RootTextRoles
impl RootTextRoles
Sourcepub fn new(
title: TextTheme,
subtitle: TextTheme,
caption: TextTheme,
) -> Result<Self, Error>
pub fn new( title: TextTheme, subtitle: TextTheme, caption: TextTheme, ) -> Result<Self, Error>
Construct all complete text roles and validate their invariants.
Sourcepub fn title(self, value: TextTheme) -> Result<Self, Error>
pub fn title(self, value: TextTheme) -> Result<Self, Error>
Replace only title, validating the complete role group.
Sourcepub fn get_subtitle(&self) -> &TextTheme
pub fn get_subtitle(&self) -> &TextTheme
Borrow the independent subtitle text role.
Sourcepub fn subtitle(self, value: TextTheme) -> Result<Self, Error>
pub fn subtitle(self, value: TextTheme) -> Result<Self, Error>
Replace only subtitle, validating the complete role group.
Sourcepub fn get_caption(&self) -> &TextTheme
pub fn get_caption(&self) -> &TextTheme
Borrow the independent caption text role.
Trait Implementations§
Source§impl Clone for RootTextRoles
impl Clone for RootTextRoles
Source§impl Debug for RootTextRoles
impl Debug for RootTextRoles
Source§impl PartialEq for RootTextRoles
impl PartialEq for RootTextRoles
impl StructuralPartialEq for RootTextRoles
Auto Trait Implementations§
impl Forget for RootTextRoles
impl Freeze for RootTextRoleswhere
*const ArcInner<Vec<FontFamily>> is !null: Freeze,
PhantomData<ArcInner<Vec<FontFamily>>>: Freeze,
impl Move for RootTextRoles
impl RefUnwindSafe for RootTextRoles
impl Send for RootTextRoles
impl Sync for RootTextRoles
impl Unpin for RootTextRoles
impl UnsafeUnpin for RootTextRoleswhere
*const ArcInner<Vec<FontFamily>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<FontFamily>>>: UnsafeUnpin,
impl UnwindSafe for RootTextRoles
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.