pub struct SignificanceGeometry { /* private fields */ }Expand description
Complete immutable SignificanceGeometry appearance component.
Implementations§
Source§impl SignificanceGeometry
impl SignificanceGeometry
Sourcepub fn new(
bracket_stroke: SolidStrokeTheme,
label_gap: RelativeSpacing,
tick_height: RelativeSpacing,
data_gap: RelativeSpacing,
level_step: RelativeSpacing,
panel_padding: RelativeSpacing,
attached_extra_clearance: RelativeSpacing,
) -> Result<Self>
pub fn new( bracket_stroke: SolidStrokeTheme, label_gap: RelativeSpacing, tick_height: RelativeSpacing, data_gap: RelativeSpacing, level_step: RelativeSpacing, panel_padding: RelativeSpacing, attached_extra_clearance: RelativeSpacing, ) -> Result<Self>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_bracket_stroke(&self) -> &SolidStrokeTheme
pub fn get_bracket_stroke(&self) -> &SolidStrokeTheme
Borrow the complete bracket_stroke value.
Sourcepub fn bracket_stroke(self, value: SolidStrokeTheme) -> Result<Self>
pub fn bracket_stroke(self, value: SolidStrokeTheme) -> Result<Self>
Replace only bracket_stroke, validating the complete resulting component.
Sourcepub fn get_label_gap(&self) -> &RelativeSpacing
pub fn get_label_gap(&self) -> &RelativeSpacing
Borrow the complete label_gap value.
Sourcepub fn label_gap(self, value: RelativeSpacing) -> Result<Self>
pub fn label_gap(self, value: RelativeSpacing) -> Result<Self>
Replace only label_gap, validating the complete resulting component.
Sourcepub fn get_tick_height(&self) -> &RelativeSpacing
pub fn get_tick_height(&self) -> &RelativeSpacing
Borrow the complete tick_height value.
Sourcepub fn tick_height(self, value: RelativeSpacing) -> Result<Self>
pub fn tick_height(self, value: RelativeSpacing) -> Result<Self>
Replace only tick_height, validating the complete resulting component.
Sourcepub fn get_data_gap(&self) -> &RelativeSpacing
pub fn get_data_gap(&self) -> &RelativeSpacing
Borrow the complete data_gap value.
Sourcepub fn data_gap(self, value: RelativeSpacing) -> Result<Self>
pub fn data_gap(self, value: RelativeSpacing) -> Result<Self>
Replace only data_gap, validating the complete resulting component.
Sourcepub fn get_level_step(&self) -> &RelativeSpacing
pub fn get_level_step(&self) -> &RelativeSpacing
Borrow the complete level_step value.
Sourcepub fn level_step(self, value: RelativeSpacing) -> Result<Self>
pub fn level_step(self, value: RelativeSpacing) -> Result<Self>
Replace only level_step, validating the complete resulting component.
Sourcepub fn get_panel_padding(&self) -> &RelativeSpacing
pub fn get_panel_padding(&self) -> &RelativeSpacing
Borrow the complete panel_padding value.
Sourcepub fn panel_padding(self, value: RelativeSpacing) -> Result<Self>
pub fn panel_padding(self, value: RelativeSpacing) -> Result<Self>
Replace only panel_padding, validating the complete resulting component.
Sourcepub fn get_attached_extra_clearance(&self) -> &RelativeSpacing
pub fn get_attached_extra_clearance(&self) -> &RelativeSpacing
Borrow the complete attached_extra_clearance value.
Sourcepub fn attached_extra_clearance(self, value: RelativeSpacing) -> Result<Self>
pub fn attached_extra_clearance(self, value: RelativeSpacing) -> Result<Self>
Replace only attached_extra_clearance, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for SignificanceGeometry
impl Clone for SignificanceGeometry
Source§impl Debug for SignificanceGeometry
impl Debug for SignificanceGeometry
Source§impl PartialEq for SignificanceGeometry
impl PartialEq for SignificanceGeometry
impl StructuralPartialEq for SignificanceGeometry
Auto Trait Implementations§
impl Forget for SignificanceGeometry
impl Freeze for SignificanceGeometry
impl Move for SignificanceGeometry
impl RefUnwindSafe for SignificanceGeometry
impl Send for SignificanceGeometry
impl Sync for SignificanceGeometry
impl Unpin for SignificanceGeometry
impl UnsafeUnpin for SignificanceGeometry
impl UnwindSafe for SignificanceGeometry
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.