pub struct CellMarkRoles { /* private fields */ }Expand description
Complete immutable CellMarkRoles appearance component.
Implementations§
Source§impl CellMarkRoles
impl CellMarkRoles
Sourcepub fn new(
fill_alpha: f64,
cell_outline: Option<OutlineTheme>,
missing_fill: Color,
missing_row_outline: Option<OutlineTheme>,
missing_key_outline: Option<OutlineTheme>,
missing_cross: StrokeTheme,
missing_cross_inset: RelativeSpacing,
) -> Result<Self>
pub fn new( fill_alpha: f64, cell_outline: Option<OutlineTheme>, missing_fill: Color, missing_row_outline: Option<OutlineTheme>, missing_key_outline: Option<OutlineTheme>, missing_cross: StrokeTheme, missing_cross_inset: RelativeSpacing, ) -> Result<Self>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_fill_alpha(&self) -> f64
pub fn get_fill_alpha(&self) -> f64
Inspect fill_alpha.
Sourcepub fn fill_alpha(self, value: f64) -> Result<Self>
pub fn fill_alpha(self, value: f64) -> Result<Self>
Replace only fill_alpha, validating the complete resulting component.
Sourcepub fn get_cell_outline(&self) -> Option<&OutlineTheme>
pub fn get_cell_outline(&self) -> Option<&OutlineTheme>
Borrow the optional cell_outline value; absence is structural.
Sourcepub fn cell_outline(self, value: Option<OutlineTheme>) -> Result<Self>
pub fn cell_outline(self, value: Option<OutlineTheme>) -> Result<Self>
Replace only cell_outline, validating the complete resulting component.
Sourcepub fn get_missing_fill(&self) -> Color
pub fn get_missing_fill(&self) -> Color
Inspect missing_fill.
Sourcepub fn missing_fill(self, value: Color) -> Result<Self>
pub fn missing_fill(self, value: Color) -> Result<Self>
Replace only missing_fill, validating the complete resulting component.
Sourcepub fn get_missing_row_outline(&self) -> Option<&OutlineTheme>
pub fn get_missing_row_outline(&self) -> Option<&OutlineTheme>
Borrow the optional missing_row_outline value; absence is structural.
Sourcepub fn missing_row_outline(self, value: Option<OutlineTheme>) -> Result<Self>
pub fn missing_row_outline(self, value: Option<OutlineTheme>) -> Result<Self>
Replace only missing_row_outline, validating the complete resulting component.
Sourcepub fn get_missing_key_outline(&self) -> Option<&OutlineTheme>
pub fn get_missing_key_outline(&self) -> Option<&OutlineTheme>
Borrow the optional missing_key_outline value; absence is structural.
Sourcepub fn missing_key_outline(self, value: Option<OutlineTheme>) -> Result<Self>
pub fn missing_key_outline(self, value: Option<OutlineTheme>) -> Result<Self>
Replace only missing_key_outline, validating the complete resulting component.
Sourcepub fn get_missing_cross(&self) -> &StrokeTheme
pub fn get_missing_cross(&self) -> &StrokeTheme
Borrow the complete missing_cross value.
Sourcepub fn missing_cross(self, value: StrokeTheme) -> Result<Self>
pub fn missing_cross(self, value: StrokeTheme) -> Result<Self>
Replace only missing_cross, validating the complete resulting component.
Sourcepub fn get_missing_cross_inset(&self) -> &RelativeSpacing
pub fn get_missing_cross_inset(&self) -> &RelativeSpacing
Borrow the complete missing_cross_inset value.
Sourcepub fn missing_cross_inset(self, value: RelativeSpacing) -> Result<Self>
pub fn missing_cross_inset(self, value: RelativeSpacing) -> Result<Self>
Replace only missing_cross_inset, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for CellMarkRoles
impl Clone for CellMarkRoles
Source§impl Debug for CellMarkRoles
impl Debug for CellMarkRoles
Source§impl PartialEq for CellMarkRoles
impl PartialEq for CellMarkRoles
impl StructuralPartialEq for CellMarkRoles
Auto Trait Implementations§
impl Forget for CellMarkRoles
impl Freeze for CellMarkRoleswhere
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
impl Move for CellMarkRoles
impl RefUnwindSafe for CellMarkRoles
impl Send for CellMarkRoles
impl Sync for CellMarkRoles
impl Unpin for CellMarkRoles
impl UnsafeUnpin for CellMarkRoleswhere
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
impl UnwindSafe for CellMarkRoleswhere
Arc<SpacingPayload>: UnwindSafe,
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.