pub struct TextVisibility { /* private fields */ }Expand description
Explicit text eligibility, independent of scientific ticks and marks.
Implementations§
Source§impl TextVisibility
impl TextVisibility
Sourcepub const fn all() -> TextVisibility
pub const fn all() -> TextVisibility
Keep every otherwise eligible text occurrence.
Suppress this text without deleting its source or scientific geometry.
Sourcepub fn every(
stride: usize,
offset: usize,
endpoints: LabelEndpoints,
) -> Result<TextVisibility, Error>
pub fn every( stride: usize, offset: usize, endpoints: LabelEndpoints, ) -> Result<TextVisibility, Error>
Select original occurrence indices modulo a positive stride, plus protected endpoints.
Sourcepub const fn greedy(endpoints: LabelEndpoints) -> TextVisibility
pub const fn greedy(endpoints: LabelEndpoints) -> TextVisibility
Retain protected labels, then nonintersecting candidates in stable geometric order.
Sourcepub const fn parity(endpoints: LabelEndpoints) -> TextVisibility
pub const fn parity(endpoints: LabelEndpoints) -> TextVisibility
Repeatedly remove alternating unprotected candidates until remaining labels fit.
Sourcepub fn separation(self, value: f64) -> Result<TextVisibility, Error>
pub fn separation(self, value: f64) -> Result<TextVisibility, Error>
Set additional physical clearance for Greedy or Parity reduction only.
Sourcepub fn boundary_tolerance(
self,
value: Option<f64>,
) -> Result<TextVisibility, Error>
pub fn boundary_tolerance( self, value: Option<f64>, ) -> Result<TextVisibility, Error>
Hide labels outside the actual group boundary, allowing signed CSS overhang.
Whether source text is suppressed independently of the selection program.
Sourcepub const fn get_every(&self) -> Option<(usize, usize)>
pub const fn get_every(&self) -> Option<(usize, usize)>
Authored stride and offset, present only for the Every program.
Sourcepub const fn get_endpoints(&self) -> LabelEndpoints
pub const fn get_endpoints(&self) -> LabelEndpoints
Requested protected endpoints.
Sourcepub const fn get_separation(&self) -> f64
pub const fn get_separation(&self) -> f64
Requested physical clearance for overlap reduction.
Sourcepub const fn get_boundary_tolerance(&self) -> Option<f64>
pub const fn get_boundary_tolerance(&self) -> Option<f64>
Signed authored boundary overhang; present zero still requests reduction.
Trait Implementations§
Source§impl Clone for TextVisibility
impl Clone for TextVisibility
Source§fn clone(&self) -> TextVisibility
fn clone(&self) -> TextVisibility
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 TextVisibility
impl Debug for TextVisibility
impl Eq for TextVisibility
Source§impl PartialEq for TextVisibility
impl PartialEq for TextVisibility
impl StructuralPartialEq for TextVisibility
Auto Trait Implementations§
impl Forget for TextVisibility
impl Freeze for TextVisibility
impl Move for TextVisibility
impl RefUnwindSafe for TextVisibility
impl Send for TextVisibility
impl Sync for TextVisibility
impl Unpin for TextVisibility
impl UnsafeUnpin for TextVisibility
impl UnwindSafe for TextVisibility
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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.