pub struct EstimateAnnotationGeometry { /* private fields */ }Expand description
Complete immutable EstimateAnnotationGeometry appearance component.
Implementations§
Source§impl EstimateAnnotationGeometry
impl EstimateAnnotationGeometry
Sourcepub fn new(
panel_inset: Insets,
guide_clearance: RelativeSpacing,
numeric_label_gap: RelativeSpacing,
) -> Result<Self>
pub fn new( panel_inset: Insets, guide_clearance: RelativeSpacing, numeric_label_gap: RelativeSpacing, ) -> Result<Self>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_panel_inset(&self) -> &Insets
pub fn get_panel_inset(&self) -> &Insets
Borrow the complete panel_inset value.
Sourcepub fn panel_inset(self, value: Insets) -> Result<Self>
pub fn panel_inset(self, value: Insets) -> Result<Self>
Replace only panel_inset, validating the complete resulting component.
Sourcepub fn get_guide_clearance(&self) -> &RelativeSpacing
pub fn get_guide_clearance(&self) -> &RelativeSpacing
Borrow the complete guide_clearance value.
Sourcepub fn guide_clearance(self, value: RelativeSpacing) -> Result<Self>
pub fn guide_clearance(self, value: RelativeSpacing) -> Result<Self>
Replace only guide_clearance, validating the complete resulting component.
Sourcepub fn get_numeric_label_gap(&self) -> &RelativeSpacing
pub fn get_numeric_label_gap(&self) -> &RelativeSpacing
Borrow the complete numeric_label_gap value.
Sourcepub fn numeric_label_gap(self, value: RelativeSpacing) -> Result<Self>
pub fn numeric_label_gap(self, value: RelativeSpacing) -> Result<Self>
Replace only numeric_label_gap, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for EstimateAnnotationGeometry
impl Clone for EstimateAnnotationGeometry
Source§impl Debug for EstimateAnnotationGeometry
impl Debug for EstimateAnnotationGeometry
impl StructuralPartialEq for EstimateAnnotationGeometry
Auto Trait Implementations§
impl Forget for EstimateAnnotationGeometry
impl Freeze for EstimateAnnotationGeometrywhere
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
impl Move for EstimateAnnotationGeometry
impl RefUnwindSafe for EstimateAnnotationGeometry
impl Send for EstimateAnnotationGeometry
impl Sync for EstimateAnnotationGeometry
impl Unpin for EstimateAnnotationGeometry
impl UnsafeUnpin for EstimateAnnotationGeometrywhere
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
impl UnwindSafe for EstimateAnnotationGeometrywhere
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
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.