pub struct CellAnnotationGeometry { /* private fields */ }Expand description
Complete immutable CellAnnotationGeometry appearance component.
Implementations§
Source§impl CellAnnotationGeometry
impl CellAnnotationGeometry
Sourcepub fn new(
highlight_outline: OutlineTheme,
value_horizontal_padding: RelativeSpacing,
value_vertical_padding: RelativeSpacing,
null_row_horizontal_padding: RelativeSpacing,
null_row_vertical_padding: RelativeSpacing,
) -> Result<CellAnnotationGeometry, Error>
pub fn new( highlight_outline: OutlineTheme, value_horizontal_padding: RelativeSpacing, value_vertical_padding: RelativeSpacing, null_row_horizontal_padding: RelativeSpacing, null_row_vertical_padding: RelativeSpacing, ) -> Result<CellAnnotationGeometry, Error>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_highlight_outline(&self) -> &OutlineTheme
pub fn get_highlight_outline(&self) -> &OutlineTheme
Borrow the complete highlight_outline value.
Sourcepub fn highlight_outline(
self,
value: OutlineTheme,
) -> Result<CellAnnotationGeometry, Error>
pub fn highlight_outline( self, value: OutlineTheme, ) -> Result<CellAnnotationGeometry, Error>
Replace only highlight_outline, validating the complete resulting component.
Sourcepub fn get_value_horizontal_padding(&self) -> &RelativeSpacing
pub fn get_value_horizontal_padding(&self) -> &RelativeSpacing
Borrow the complete value_horizontal_padding value.
Sourcepub fn value_horizontal_padding(
self,
value: RelativeSpacing,
) -> Result<CellAnnotationGeometry, Error>
pub fn value_horizontal_padding( self, value: RelativeSpacing, ) -> Result<CellAnnotationGeometry, Error>
Replace only value_horizontal_padding, validating the complete resulting component.
Sourcepub fn get_value_vertical_padding(&self) -> &RelativeSpacing
pub fn get_value_vertical_padding(&self) -> &RelativeSpacing
Borrow the complete value_vertical_padding value.
Sourcepub fn value_vertical_padding(
self,
value: RelativeSpacing,
) -> Result<CellAnnotationGeometry, Error>
pub fn value_vertical_padding( self, value: RelativeSpacing, ) -> Result<CellAnnotationGeometry, Error>
Replace only value_vertical_padding, validating the complete resulting component.
Sourcepub fn get_null_row_horizontal_padding(&self) -> &RelativeSpacing
pub fn get_null_row_horizontal_padding(&self) -> &RelativeSpacing
Borrow the complete null_row_horizontal_padding value.
Sourcepub fn null_row_horizontal_padding(
self,
value: RelativeSpacing,
) -> Result<CellAnnotationGeometry, Error>
pub fn null_row_horizontal_padding( self, value: RelativeSpacing, ) -> Result<CellAnnotationGeometry, Error>
Replace only null_row_horizontal_padding, validating the complete resulting component.
Sourcepub fn get_null_row_vertical_padding(&self) -> &RelativeSpacing
pub fn get_null_row_vertical_padding(&self) -> &RelativeSpacing
Borrow the complete null_row_vertical_padding value.
Sourcepub fn null_row_vertical_padding(
self,
value: RelativeSpacing,
) -> Result<CellAnnotationGeometry, Error>
pub fn null_row_vertical_padding( self, value: RelativeSpacing, ) -> Result<CellAnnotationGeometry, Error>
Replace only null_row_vertical_padding, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for CellAnnotationGeometry
impl Clone for CellAnnotationGeometry
Source§fn clone(&self) -> CellAnnotationGeometry
fn clone(&self) -> CellAnnotationGeometry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CellAnnotationGeometry
impl Debug for CellAnnotationGeometry
Source§impl PartialEq for CellAnnotationGeometry
impl PartialEq for CellAnnotationGeometry
impl StructuralPartialEq for CellAnnotationGeometry
Auto Trait Implementations§
impl Forget for CellAnnotationGeometry
impl Freeze for CellAnnotationGeometry
impl Move for CellAnnotationGeometry
impl RefUnwindSafe for CellAnnotationGeometry
impl Send for CellAnnotationGeometry
impl Sync for CellAnnotationGeometry
impl Unpin for CellAnnotationGeometry
impl UnsafeUnpin for CellAnnotationGeometry
impl UnwindSafe for CellAnnotationGeometry
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.