pub struct SummaryStrokeRoles { /* private fields */ }Expand description
Complete immutable SummaryStrokeRoles appearance component.
Implementations§
Source§impl SummaryStrokeRoles
impl SummaryStrokeRoles
Sourcepub fn new(
uncertainty: StrokeTheme,
summary: StrokeTheme,
estimate_interval: StrokeTheme,
median: StrokeTheme,
) -> Result<Self>
pub fn new( uncertainty: StrokeTheme, summary: StrokeTheme, estimate_interval: StrokeTheme, median: StrokeTheme, ) -> Result<Self>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_uncertainty(&self) -> &StrokeTheme
pub fn get_uncertainty(&self) -> &StrokeTheme
Borrow the complete uncertainty value.
Sourcepub fn uncertainty(self, value: StrokeTheme) -> Result<Self>
pub fn uncertainty(self, value: StrokeTheme) -> Result<Self>
Replace only uncertainty, validating the complete resulting component.
Sourcepub fn get_summary(&self) -> &StrokeTheme
pub fn get_summary(&self) -> &StrokeTheme
Borrow the complete summary value.
Sourcepub fn summary(self, value: StrokeTheme) -> Result<Self>
pub fn summary(self, value: StrokeTheme) -> Result<Self>
Replace only summary, validating the complete resulting component.
Sourcepub fn get_estimate_interval(&self) -> &StrokeTheme
pub fn get_estimate_interval(&self) -> &StrokeTheme
Borrow the complete estimate_interval value.
Sourcepub fn estimate_interval(self, value: StrokeTheme) -> Result<Self>
pub fn estimate_interval(self, value: StrokeTheme) -> Result<Self>
Replace only estimate_interval, validating the complete resulting component.
Sourcepub fn get_median(&self) -> &StrokeTheme
pub fn get_median(&self) -> &StrokeTheme
Borrow the complete median value.
Sourcepub fn median(self, value: StrokeTheme) -> Result<Self>
pub fn median(self, value: StrokeTheme) -> Result<Self>
Replace only median, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for SummaryStrokeRoles
impl Clone for SummaryStrokeRoles
Source§impl Debug for SummaryStrokeRoles
impl Debug for SummaryStrokeRoles
Source§impl PartialEq for SummaryStrokeRoles
impl PartialEq for SummaryStrokeRoles
impl StructuralPartialEq for SummaryStrokeRoles
Auto Trait Implementations§
impl Forget for SummaryStrokeRoles
impl Freeze for SummaryStrokeRoles
impl Move for SummaryStrokeRoles
impl RefUnwindSafe for SummaryStrokeRoles
impl Send for SummaryStrokeRoles
impl Sync for SummaryStrokeRoles
impl Unpin for SummaryStrokeRoles
impl UnsafeUnpin for SummaryStrokeRoles
impl UnwindSafe for SummaryStrokeRoles
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.