pub struct DataLineRoles { /* private fields */ }Expand description
Complete immutable DataLineRoles appearance component.
Implementations§
Source§impl DataLineRoles
impl DataLineRoles
Sourcepub fn new(
series_line: DataLineTheme,
path_line: DataLineTheme,
density_line: DataLineTheme,
interaction_interval: DataLineTheme,
interaction_connector: DataLineTheme,
) -> Result<DataLineRoles, Error>
pub fn new( series_line: DataLineTheme, path_line: DataLineTheme, density_line: DataLineTheme, interaction_interval: DataLineTheme, interaction_connector: DataLineTheme, ) -> Result<DataLineRoles, Error>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_series_line(&self) -> &DataLineTheme
pub fn get_series_line(&self) -> &DataLineTheme
Borrow the complete series_line value.
Sourcepub fn series_line(self, value: DataLineTheme) -> Result<DataLineRoles, Error>
pub fn series_line(self, value: DataLineTheme) -> Result<DataLineRoles, Error>
Replace only series_line, validating the complete resulting component.
Sourcepub fn get_path_line(&self) -> &DataLineTheme
pub fn get_path_line(&self) -> &DataLineTheme
Borrow the complete path_line value.
Sourcepub fn path_line(self, value: DataLineTheme) -> Result<DataLineRoles, Error>
pub fn path_line(self, value: DataLineTheme) -> Result<DataLineRoles, Error>
Replace only path_line, validating the complete resulting component.
Sourcepub fn get_density_line(&self) -> &DataLineTheme
pub fn get_density_line(&self) -> &DataLineTheme
Borrow the complete density_line value.
Sourcepub fn density_line(self, value: DataLineTheme) -> Result<DataLineRoles, Error>
pub fn density_line(self, value: DataLineTheme) -> Result<DataLineRoles, Error>
Replace only density_line, validating the complete resulting component.
Sourcepub fn get_interaction_interval(&self) -> &DataLineTheme
pub fn get_interaction_interval(&self) -> &DataLineTheme
Borrow the complete interaction_interval value.
Sourcepub fn interaction_interval(
self,
value: DataLineTheme,
) -> Result<DataLineRoles, Error>
pub fn interaction_interval( self, value: DataLineTheme, ) -> Result<DataLineRoles, Error>
Replace only interaction_interval, validating the complete resulting component.
Sourcepub fn get_interaction_connector(&self) -> &DataLineTheme
pub fn get_interaction_connector(&self) -> &DataLineTheme
Borrow the complete interaction_connector value.
Sourcepub fn interaction_connector(
self,
value: DataLineTheme,
) -> Result<DataLineRoles, Error>
pub fn interaction_connector( self, value: DataLineTheme, ) -> Result<DataLineRoles, Error>
Replace only interaction_connector, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for DataLineRoles
impl Clone for DataLineRoles
Source§fn clone(&self) -> DataLineRoles
fn clone(&self) -> DataLineRoles
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 DataLineRoles
impl Debug for DataLineRoles
Source§impl PartialEq for DataLineRoles
impl PartialEq for DataLineRoles
impl StructuralPartialEq for DataLineRoles
Auto Trait Implementations§
impl Forget for DataLineRoles
impl Freeze for DataLineRoles
impl Move for DataLineRoles
impl RefUnwindSafe for DataLineRoles
impl Send for DataLineRoles
impl Sync for DataLineRoles
impl Unpin for DataLineRoles
impl UnsafeUnpin for DataLineRoles
impl UnwindSafe for DataLineRoles
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.