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<EstimateAnnotationGeometry, Error>
pub fn new( panel_inset: Insets, guide_clearance: RelativeSpacing, numeric_label_gap: RelativeSpacing, ) -> Result<EstimateAnnotationGeometry, Error>
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<EstimateAnnotationGeometry, Error>
pub fn panel_inset( self, value: Insets, ) -> Result<EstimateAnnotationGeometry, Error>
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<EstimateAnnotationGeometry, Error>
pub fn guide_clearance( self, value: RelativeSpacing, ) -> Result<EstimateAnnotationGeometry, Error>
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<EstimateAnnotationGeometry, Error>
pub fn numeric_label_gap( self, value: RelativeSpacing, ) -> Result<EstimateAnnotationGeometry, Error>
Replace only numeric_label_gap, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for EstimateAnnotationGeometry
impl Clone for EstimateAnnotationGeometry
Source§fn clone(&self) -> EstimateAnnotationGeometry
fn clone(&self) -> EstimateAnnotationGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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§
impl<T> Allocation for T
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.