pub struct LegendSpacing { /* private fields */ }Expand description
Complete independent exact guide relationships, resolved against selected guide text em.
Implementations§
Source§impl LegendSpacing
impl LegendSpacing
Sourcepub fn new(
padding: RelativeSpacing,
key_width: RelativeSpacing,
key_label_gap: RelativeSpacing,
outside_gap: RelativeSpacing,
shared_gap: RelativeSpacing,
row_gap: RelativeSpacing,
column_gap: RelativeSpacing,
title_gap: RelativeSpacing,
glyph_edge_padding: RelativeSpacing,
) -> Result<Self>
pub fn new( padding: RelativeSpacing, key_width: RelativeSpacing, key_label_gap: RelativeSpacing, outside_gap: RelativeSpacing, shared_gap: RelativeSpacing, row_gap: RelativeSpacing, column_gap: RelativeSpacing, title_gap: RelativeSpacing, glyph_edge_padding: RelativeSpacing, ) -> Result<Self>
Construct complete nonnegative relationships with a strictly positive key width.
Sourcepub fn get_padding(&self) -> &RelativeSpacing
pub fn get_padding(&self) -> &RelativeSpacing
Borrow the exact padding relationship.
Sourcepub fn padding(self, value: RelativeSpacing) -> Result<Self>
pub fn padding(self, value: RelativeSpacing) -> Result<Self>
Replace only padding, validating the complete spacing value.
Sourcepub fn get_key_width(&self) -> &RelativeSpacing
pub fn get_key_width(&self) -> &RelativeSpacing
Borrow the exact key_width relationship.
Sourcepub fn key_width(self, value: RelativeSpacing) -> Result<Self>
pub fn key_width(self, value: RelativeSpacing) -> Result<Self>
Replace only key_width, validating the complete spacing value.
Sourcepub fn get_key_label_gap(&self) -> &RelativeSpacing
pub fn get_key_label_gap(&self) -> &RelativeSpacing
Borrow the exact key_label_gap relationship.
Sourcepub fn key_label_gap(self, value: RelativeSpacing) -> Result<Self>
pub fn key_label_gap(self, value: RelativeSpacing) -> Result<Self>
Replace only key_label_gap, validating the complete spacing value.
Sourcepub fn get_outside_gap(&self) -> &RelativeSpacing
pub fn get_outside_gap(&self) -> &RelativeSpacing
Borrow the exact outside_gap relationship.
Sourcepub fn outside_gap(self, value: RelativeSpacing) -> Result<Self>
pub fn outside_gap(self, value: RelativeSpacing) -> Result<Self>
Replace only outside_gap, validating the complete spacing value.
Borrow the exact shared_gap relationship.
Replace only shared_gap, validating the complete spacing value.
Sourcepub fn get_row_gap(&self) -> &RelativeSpacing
pub fn get_row_gap(&self) -> &RelativeSpacing
Borrow the exact row_gap relationship.
Sourcepub fn row_gap(self, value: RelativeSpacing) -> Result<Self>
pub fn row_gap(self, value: RelativeSpacing) -> Result<Self>
Replace only row_gap, validating the complete spacing value.
Sourcepub fn get_column_gap(&self) -> &RelativeSpacing
pub fn get_column_gap(&self) -> &RelativeSpacing
Borrow the exact column_gap relationship.
Sourcepub fn column_gap(self, value: RelativeSpacing) -> Result<Self>
pub fn column_gap(self, value: RelativeSpacing) -> Result<Self>
Replace only column_gap, validating the complete spacing value.
Sourcepub fn get_title_gap(&self) -> &RelativeSpacing
pub fn get_title_gap(&self) -> &RelativeSpacing
Borrow the exact title_gap relationship.
Sourcepub fn title_gap(self, value: RelativeSpacing) -> Result<Self>
pub fn title_gap(self, value: RelativeSpacing) -> Result<Self>
Replace only title_gap, validating the complete spacing value.
Sourcepub fn get_glyph_edge_padding(&self) -> &RelativeSpacing
pub fn get_glyph_edge_padding(&self) -> &RelativeSpacing
Borrow the exact glyph_edge_padding relationship.
Sourcepub fn glyph_edge_padding(self, value: RelativeSpacing) -> Result<Self>
pub fn glyph_edge_padding(self, value: RelativeSpacing) -> Result<Self>
Replace only glyph_edge_padding, validating the complete spacing value.
Trait Implementations§
Source§impl Clone for LegendSpacing
impl Clone for LegendSpacing
Source§impl Debug for LegendSpacing
impl Debug for LegendSpacing
impl Eq for LegendSpacing
Source§impl PartialEq for LegendSpacing
impl PartialEq for LegendSpacing
impl StructuralPartialEq for LegendSpacing
Auto Trait Implementations§
impl Forget for LegendSpacing
impl Freeze for LegendSpacing
impl Move for LegendSpacing
impl RefUnwindSafe for LegendSpacing
impl Send for LegendSpacing
impl Sync for LegendSpacing
impl Unpin for LegendSpacing
impl UnsafeUnpin for LegendSpacing
impl UnwindSafe for LegendSpacing
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.