pub struct CurveStrokeRoles { /* private fields */ }Expand description
Complete immutable CurveStrokeRoles appearance component.
Implementations§
Source§impl CurveStrokeRoles
impl CurveStrokeRoles
Sourcepub fn new(
histogram_curve: StrokeTheme,
histogram_rug: StrokeTheme,
regression_fit: StrokeTheme,
) -> Result<CurveStrokeRoles, Error>
pub fn new( histogram_curve: StrokeTheme, histogram_rug: StrokeTheme, regression_fit: StrokeTheme, ) -> Result<CurveStrokeRoles, Error>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_histogram_curve(&self) -> &StrokeTheme
pub fn get_histogram_curve(&self) -> &StrokeTheme
Borrow the complete histogram_curve value.
Sourcepub fn histogram_curve(
self,
value: StrokeTheme,
) -> Result<CurveStrokeRoles, Error>
pub fn histogram_curve( self, value: StrokeTheme, ) -> Result<CurveStrokeRoles, Error>
Replace only histogram_curve, validating the complete resulting component.
Sourcepub fn get_histogram_rug(&self) -> &StrokeTheme
pub fn get_histogram_rug(&self) -> &StrokeTheme
Borrow the complete histogram_rug value.
Sourcepub fn histogram_rug(
self,
value: StrokeTheme,
) -> Result<CurveStrokeRoles, Error>
pub fn histogram_rug( self, value: StrokeTheme, ) -> Result<CurveStrokeRoles, Error>
Replace only histogram_rug, validating the complete resulting component.
Sourcepub fn get_regression_fit(&self) -> &StrokeTheme
pub fn get_regression_fit(&self) -> &StrokeTheme
Borrow the complete regression_fit value.
Sourcepub fn regression_fit(
self,
value: StrokeTheme,
) -> Result<CurveStrokeRoles, Error>
pub fn regression_fit( self, value: StrokeTheme, ) -> Result<CurveStrokeRoles, Error>
Replace only regression_fit, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for CurveStrokeRoles
impl Clone for CurveStrokeRoles
Source§fn clone(&self) -> CurveStrokeRoles
fn clone(&self) -> CurveStrokeRoles
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CurveStrokeRoles
impl Debug for CurveStrokeRoles
Source§impl PartialEq for CurveStrokeRoles
impl PartialEq for CurveStrokeRoles
impl StructuralPartialEq for CurveStrokeRoles
Auto Trait Implementations§
impl Forget for CurveStrokeRoles
impl Freeze for CurveStrokeRoles
impl Move for CurveStrokeRoles
impl RefUnwindSafe for CurveStrokeRoles
impl Send for CurveStrokeRoles
impl Sync for CurveStrokeRoles
impl Unpin for CurveStrokeRoles
impl UnsafeUnpin for CurveStrokeRoles
impl UnwindSafe for CurveStrokeRoles
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.