pub struct CategoryMarkGeometry { /* private fields */ }Expand description
Complete immutable CategoryMarkGeometry appearance component.
Implementations§
Source§impl CategoryMarkGeometry
impl CategoryMarkGeometry
Sourcepub fn new(
vertical_body_breadth: RelativeSpacing,
horizontal_body_breadth: RelativeSpacing,
vertical_group_span: RelativeSpacing,
horizontal_group_span: RelativeSpacing,
uncertainty_cap_ratio: RelativeSpacing,
) -> Result<CategoryMarkGeometry, Error>
pub fn new( vertical_body_breadth: RelativeSpacing, horizontal_body_breadth: RelativeSpacing, vertical_group_span: RelativeSpacing, horizontal_group_span: RelativeSpacing, uncertainty_cap_ratio: RelativeSpacing, ) -> Result<CategoryMarkGeometry, Error>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_vertical_body_breadth(&self) -> &RelativeSpacing
pub fn get_vertical_body_breadth(&self) -> &RelativeSpacing
Borrow the complete vertical_body_breadth value.
Sourcepub fn vertical_body_breadth(
self,
value: RelativeSpacing,
) -> Result<CategoryMarkGeometry, Error>
pub fn vertical_body_breadth( self, value: RelativeSpacing, ) -> Result<CategoryMarkGeometry, Error>
Replace only vertical_body_breadth, validating the complete resulting component.
Sourcepub fn get_horizontal_body_breadth(&self) -> &RelativeSpacing
pub fn get_horizontal_body_breadth(&self) -> &RelativeSpacing
Borrow the complete horizontal_body_breadth value.
Sourcepub fn horizontal_body_breadth(
self,
value: RelativeSpacing,
) -> Result<CategoryMarkGeometry, Error>
pub fn horizontal_body_breadth( self, value: RelativeSpacing, ) -> Result<CategoryMarkGeometry, Error>
Replace only horizontal_body_breadth, validating the complete resulting component.
Sourcepub fn get_vertical_group_span(&self) -> &RelativeSpacing
pub fn get_vertical_group_span(&self) -> &RelativeSpacing
Borrow the complete vertical_group_span value.
Sourcepub fn vertical_group_span(
self,
value: RelativeSpacing,
) -> Result<CategoryMarkGeometry, Error>
pub fn vertical_group_span( self, value: RelativeSpacing, ) -> Result<CategoryMarkGeometry, Error>
Replace only vertical_group_span, validating the complete resulting component.
Sourcepub fn get_horizontal_group_span(&self) -> &RelativeSpacing
pub fn get_horizontal_group_span(&self) -> &RelativeSpacing
Borrow the complete horizontal_group_span value.
Sourcepub fn horizontal_group_span(
self,
value: RelativeSpacing,
) -> Result<CategoryMarkGeometry, Error>
pub fn horizontal_group_span( self, value: RelativeSpacing, ) -> Result<CategoryMarkGeometry, Error>
Replace only horizontal_group_span, validating the complete resulting component.
Sourcepub fn get_uncertainty_cap_ratio(&self) -> &RelativeSpacing
pub fn get_uncertainty_cap_ratio(&self) -> &RelativeSpacing
Borrow the complete uncertainty_cap_ratio value.
Sourcepub fn uncertainty_cap_ratio(
self,
value: RelativeSpacing,
) -> Result<CategoryMarkGeometry, Error>
pub fn uncertainty_cap_ratio( self, value: RelativeSpacing, ) -> Result<CategoryMarkGeometry, Error>
Replace only uncertainty_cap_ratio, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for CategoryMarkGeometry
impl Clone for CategoryMarkGeometry
Source§fn clone(&self) -> CategoryMarkGeometry
fn clone(&self) -> CategoryMarkGeometry
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 CategoryMarkGeometry
impl Debug for CategoryMarkGeometry
Source§impl PartialEq for CategoryMarkGeometry
impl PartialEq for CategoryMarkGeometry
impl StructuralPartialEq for CategoryMarkGeometry
Auto Trait Implementations§
impl Forget for CategoryMarkGeometry
impl Freeze for CategoryMarkGeometrywhere
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
impl Move for CategoryMarkGeometry
impl RefUnwindSafe for CategoryMarkGeometry
impl Send for CategoryMarkGeometry
impl Sync for CategoryMarkGeometry
impl Unpin for CategoryMarkGeometry
impl UnsafeUnpin for CategoryMarkGeometrywhere
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
impl UnwindSafe for CategoryMarkGeometrywhere
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
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.