pub struct ReferenceStrokeRoles { /* private fields */ }Expand description
Complete immutable ReferenceStrokeRoles appearance component.
Implementations§
Source§impl ReferenceStrokeRoles
impl ReferenceStrokeRoles
Sourcepub fn new(
bar_zero: StrokeTheme,
waterfall_reference: StrokeTheme,
beeswarm_reference: StrokeTheme,
point_interval_reference: StrokeTheme,
estimate_reference: StrokeTheme,
qq_reference: StrokeTheme,
) -> Result<Self>
pub fn new( bar_zero: StrokeTheme, waterfall_reference: StrokeTheme, beeswarm_reference: StrokeTheme, point_interval_reference: StrokeTheme, estimate_reference: StrokeTheme, qq_reference: StrokeTheme, ) -> Result<Self>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_bar_zero(&self) -> &StrokeTheme
pub fn get_bar_zero(&self) -> &StrokeTheme
Borrow the complete bar_zero value.
Sourcepub fn bar_zero(self, value: StrokeTheme) -> Result<Self>
pub fn bar_zero(self, value: StrokeTheme) -> Result<Self>
Replace only bar_zero, validating the complete resulting component.
Sourcepub fn get_waterfall_reference(&self) -> &StrokeTheme
pub fn get_waterfall_reference(&self) -> &StrokeTheme
Borrow the complete waterfall_reference value.
Sourcepub fn waterfall_reference(self, value: StrokeTheme) -> Result<Self>
pub fn waterfall_reference(self, value: StrokeTheme) -> Result<Self>
Replace only waterfall_reference, validating the complete resulting component.
Sourcepub fn get_beeswarm_reference(&self) -> &StrokeTheme
pub fn get_beeswarm_reference(&self) -> &StrokeTheme
Borrow the complete beeswarm_reference value.
Sourcepub fn beeswarm_reference(self, value: StrokeTheme) -> Result<Self>
pub fn beeswarm_reference(self, value: StrokeTheme) -> Result<Self>
Replace only beeswarm_reference, validating the complete resulting component.
Sourcepub fn get_point_interval_reference(&self) -> &StrokeTheme
pub fn get_point_interval_reference(&self) -> &StrokeTheme
Borrow the complete point_interval_reference value.
Sourcepub fn point_interval_reference(self, value: StrokeTheme) -> Result<Self>
pub fn point_interval_reference(self, value: StrokeTheme) -> Result<Self>
Replace only point_interval_reference, validating the complete resulting component.
Sourcepub fn get_estimate_reference(&self) -> &StrokeTheme
pub fn get_estimate_reference(&self) -> &StrokeTheme
Borrow the complete estimate_reference value.
Sourcepub fn estimate_reference(self, value: StrokeTheme) -> Result<Self>
pub fn estimate_reference(self, value: StrokeTheme) -> Result<Self>
Replace only estimate_reference, validating the complete resulting component.
Sourcepub fn get_qq_reference(&self) -> &StrokeTheme
pub fn get_qq_reference(&self) -> &StrokeTheme
Borrow the complete qq_reference value.
Sourcepub fn qq_reference(self, value: StrokeTheme) -> Result<Self>
pub fn qq_reference(self, value: StrokeTheme) -> Result<Self>
Replace only qq_reference, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for ReferenceStrokeRoles
impl Clone for ReferenceStrokeRoles
Source§impl Debug for ReferenceStrokeRoles
impl Debug for ReferenceStrokeRoles
Source§impl PartialEq for ReferenceStrokeRoles
impl PartialEq for ReferenceStrokeRoles
impl StructuralPartialEq for ReferenceStrokeRoles
Auto Trait Implementations§
impl Forget for ReferenceStrokeRoles
impl Freeze for ReferenceStrokeRoles
impl Move for ReferenceStrokeRoles
impl RefUnwindSafe for ReferenceStrokeRoles
impl Send for ReferenceStrokeRoles
impl Sync for ReferenceStrokeRoles
impl Unpin for ReferenceStrokeRoles
impl UnsafeUnpin for ReferenceStrokeRoles
impl UnwindSafe for ReferenceStrokeRoles
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
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.