pub struct MarkTheme { /* private fields */ }Expand description
Complete immutable MarkTheme appearance component.
Implementations§
Source§impl MarkTheme
impl MarkTheme
Sourcepub fn new(
accents: AccentPalette,
points: PointRoles,
fills: FillRoles,
data_lines: DataLineRoles,
neutral_paints: NeutralPaintRoles,
strokes: StrokeRoles,
cells: CellMarkRoles,
extents: MarkExtentTheme,
) -> Result<Self>
pub fn new( accents: AccentPalette, points: PointRoles, fills: FillRoles, data_lines: DataLineRoles, neutral_paints: NeutralPaintRoles, strokes: StrokeRoles, cells: CellMarkRoles, extents: MarkExtentTheme, ) -> Result<Self>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_accents(&self) -> &AccentPalette
pub fn get_accents(&self) -> &AccentPalette
Borrow the complete accents value.
Sourcepub fn accents(self, value: AccentPalette) -> Result<Self>
pub fn accents(self, value: AccentPalette) -> Result<Self>
Replace only accents, validating the complete resulting component.
Sourcepub fn get_points(&self) -> &PointRoles
pub fn get_points(&self) -> &PointRoles
Borrow the complete points value.
Sourcepub fn points(self, value: PointRoles) -> Result<Self>
pub fn points(self, value: PointRoles) -> Result<Self>
Replace only points, validating the complete resulting component.
Sourcepub fn fills(self, value: FillRoles) -> Result<Self>
pub fn fills(self, value: FillRoles) -> Result<Self>
Replace only fills, validating the complete resulting component.
Sourcepub fn get_data_lines(&self) -> &DataLineRoles
pub fn get_data_lines(&self) -> &DataLineRoles
Borrow the complete data_lines value.
Sourcepub fn data_lines(self, value: DataLineRoles) -> Result<Self>
pub fn data_lines(self, value: DataLineRoles) -> Result<Self>
Replace only data_lines, validating the complete resulting component.
Sourcepub fn get_neutral_paints(&self) -> &NeutralPaintRoles
pub fn get_neutral_paints(&self) -> &NeutralPaintRoles
Borrow the complete neutral_paints value.
Sourcepub fn neutral_paints(self, value: NeutralPaintRoles) -> Result<Self>
pub fn neutral_paints(self, value: NeutralPaintRoles) -> Result<Self>
Replace only neutral_paints, validating the complete resulting component.
Sourcepub fn get_strokes(&self) -> &StrokeRoles
pub fn get_strokes(&self) -> &StrokeRoles
Borrow the complete strokes value.
Sourcepub fn strokes(self, value: StrokeRoles) -> Result<Self>
pub fn strokes(self, value: StrokeRoles) -> Result<Self>
Replace only strokes, validating the complete resulting component.
Sourcepub fn get_cells(&self) -> &CellMarkRoles
pub fn get_cells(&self) -> &CellMarkRoles
Borrow the complete cells value.
Sourcepub fn cells(self, value: CellMarkRoles) -> Result<Self>
pub fn cells(self, value: CellMarkRoles) -> Result<Self>
Replace only cells, validating the complete resulting component.
Sourcepub fn get_extents(&self) -> &MarkExtentTheme
pub fn get_extents(&self) -> &MarkExtentTheme
Borrow the complete extents value.
Sourcepub fn extents(self, value: MarkExtentTheme) -> Result<Self>
pub fn extents(self, value: MarkExtentTheme) -> Result<Self>
Replace only extents, validating the complete resulting component.
Trait Implementations§
impl StructuralPartialEq for MarkTheme
Auto Trait Implementations§
impl Forget for MarkTheme
impl Freeze for MarkThemewhere
*const ArcInner<Vec<OpaqueColor>> is !null: Freeze,
PhantomData<ArcInner<Vec<OpaqueColor>>>: Freeze,
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
impl Move for MarkTheme
impl RefUnwindSafe for MarkTheme
impl Send for MarkTheme
impl Sync for MarkTheme
impl Unpin for MarkTheme
impl UnsafeUnpin for MarkThemewhere
*const ArcInner<Vec<OpaqueColor>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<OpaqueColor>>>: UnsafeUnpin,
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
impl UnwindSafe for MarkTheme
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.