pub struct AnnotationTextRoles { /* private fields */ }Expand description
Complete annotation text, independent of mark and axis chrome.
Implementations§
Source§impl AnnotationTextRoles
impl AnnotationTextRoles
Sourcepub fn new(
significance_label: TextTheme,
estimate_detail: TextTheme,
waterfall_total: TextTheme,
point_layer_label: TextTheme,
panel_text: TextTheme,
contrast: ContrastTextRoles,
) -> Result<Self, Error>
pub fn new( significance_label: TextTheme, estimate_detail: TextTheme, waterfall_total: TextTheme, point_layer_label: TextTheme, panel_text: TextTheme, contrast: ContrastTextRoles, ) -> Result<Self, Error>
Construct all complete text roles and validate their invariants.
Sourcepub fn get_significance_label(&self) -> &TextTheme
pub fn get_significance_label(&self) -> &TextTheme
Borrow the independent significance_label text role.
Sourcepub fn significance_label(self, value: TextTheme) -> Result<Self, Error>
pub fn significance_label(self, value: TextTheme) -> Result<Self, Error>
Replace only significance_label, validating the complete role group.
Sourcepub fn get_estimate_detail(&self) -> &TextTheme
pub fn get_estimate_detail(&self) -> &TextTheme
Borrow the independent estimate_detail text role.
Sourcepub fn estimate_detail(self, value: TextTheme) -> Result<Self, Error>
pub fn estimate_detail(self, value: TextTheme) -> Result<Self, Error>
Replace only estimate_detail, validating the complete role group.
Sourcepub fn get_waterfall_total(&self) -> &TextTheme
pub fn get_waterfall_total(&self) -> &TextTheme
Borrow the independent waterfall_total text role.
Sourcepub fn waterfall_total(self, value: TextTheme) -> Result<Self, Error>
pub fn waterfall_total(self, value: TextTheme) -> Result<Self, Error>
Replace only waterfall_total, validating the complete role group.
Sourcepub fn get_point_layer_label(&self) -> &TextTheme
pub fn get_point_layer_label(&self) -> &TextTheme
Borrow the independent point_layer_label text role.
Sourcepub fn point_layer_label(self, value: TextTheme) -> Result<Self, Error>
pub fn point_layer_label(self, value: TextTheme) -> Result<Self, Error>
Replace only point_layer_label, validating the complete role group.
Sourcepub fn get_panel_text(&self) -> &TextTheme
pub fn get_panel_text(&self) -> &TextTheme
Borrow the independent panel_text text role.
Sourcepub fn panel_text(self, value: TextTheme) -> Result<Self, Error>
pub fn panel_text(self, value: TextTheme) -> Result<Self, Error>
Replace only panel_text, validating the complete role group.
Sourcepub fn get_contrast(&self) -> &ContrastTextRoles
pub fn get_contrast(&self) -> &ContrastTextRoles
Borrow the independent contrast text role.
Sourcepub fn contrast(self, value: ContrastTextRoles) -> Result<Self, Error>
pub fn contrast(self, value: ContrastTextRoles) -> Result<Self, Error>
Replace only contrast, validating the complete role group.
Trait Implementations§
Source§impl Clone for AnnotationTextRoles
impl Clone for AnnotationTextRoles
Source§impl Debug for AnnotationTextRoles
impl Debug for AnnotationTextRoles
Source§impl PartialEq for AnnotationTextRoles
impl PartialEq for AnnotationTextRoles
impl StructuralPartialEq for AnnotationTextRoles
Auto Trait Implementations§
impl Forget for AnnotationTextRoles
impl Freeze for AnnotationTextRoleswhere
*const ArcInner<Vec<FontFamily>> is !null: Freeze,
PhantomData<ArcInner<Vec<FontFamily>>>: Freeze,
impl Move for AnnotationTextRoles
impl RefUnwindSafe for AnnotationTextRoles
impl Send for AnnotationTextRoles
impl Sync for AnnotationTextRoles
impl Unpin for AnnotationTextRoles
impl UnsafeUnpin for AnnotationTextRoleswhere
*const ArcInner<Vec<FontFamily>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<FontFamily>>>: UnsafeUnpin,
impl UnwindSafe for AnnotationTextRoles
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
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.