pub struct GuideSpec { /* private fields */ }Expand description
An authored numeric guide, independent of its owner’s effective theme.
Geometry never expands the scientific window. Finite off-window portions are clipped; omitted visual fields resolve at preparation against the effective theme’s estimate-reference stroke.
Implementations§
Source§impl GuideSpec
impl GuideSpec
Sourcepub const fn horizontal(y: f64) -> Self
pub const fn horizontal(y: f64) -> Self
Construct a horizontal guide with theme styling.
Sourcepub const fn segment(x_start: f64, y_start: f64, x_end: f64, y_end: f64) -> Self
pub const fn segment(x_start: f64, y_start: f64, x_end: f64, y_end: f64) -> Self
Construct a finite scientific segment with theme styling.
Sourcepub const fn geometry(&self) -> &GuideGeometry
pub const fn geometry(&self) -> &GuideGeometry
Borrow the original scientific geometry.
Sourcepub fn style(self, style: GuideStyle) -> Self
pub fn style(self, style: GuideStyle) -> Self
Supply all three exact visual overrides.
Sourcepub fn width(self, width: f32) -> Result<Self, Error>
pub fn width(self, width: f32) -> Result<Self, Error>
Override only the positive finite CSS stroke width.
Sourcepub fn pattern(self, pattern: LinePattern) -> Self
pub fn pattern(self, pattern: LinePattern) -> Self
Override only the line pattern.
Sourcepub const fn get_pattern(&self) -> Option<LinePattern>
pub const fn get_pattern(&self) -> Option<LinePattern>
The explicitly supplied pattern, if any.
Trait Implementations§
impl StructuralPartialEq for GuideSpec
Auto Trait Implementations§
impl Forget for GuideSpec
impl Freeze for GuideSpec
impl Move for GuideSpec
impl RefUnwindSafe for GuideSpec
impl Send for GuideSpec
impl Sync for GuideSpec
impl Unpin for GuideSpec
impl UnsafeUnpin for GuideSpec
impl UnwindSafe for GuideSpec
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.