pub struct Opt<'a> {
pub stroke: u32,
pub font: f64,
pub font_family: Option<Cow<'a, str>>,
pub grid: bool,
pub axis: bool,
pub legend: LegendPos,
}Available on crate feature
plot only.Expand description
2D/3D plot option.
Fieldsยง
ยงstroke: u32Stroke size
font: f64Font size
font_family: Option<Cow<'a, str>>Font family
grid: boolShow grid
axis: boolShow axis
legend: LegendPosLegend position
Trait Implementationsยง
sourceยงimpl<'de, 'a> Deserialize<'de> for Opt<'a>where
Opt<'a>: Default,
impl<'de, 'a> Deserialize<'de> for Opt<'a>where Opt<'a>: Default,
sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceยงimpl<'a> PartialEq for Opt<'a>
impl<'a> PartialEq for Opt<'a>
impl<'a> StructuralPartialEq for Opt<'a>
Auto Trait Implementationsยง
impl<'a> RefUnwindSafe for Opt<'a>
impl<'a> Send for Opt<'a>
impl<'a> Sync for Opt<'a>
impl<'a> Unpin for Opt<'a>
impl<'a> UnwindSafe for Opt<'a>
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<T> Pointable for T
impl<T> Pointable for T
ยงimpl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
ยง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 moreยง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).ยง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.ยงfn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.