Enum net_ensembles::sampling::GnuplotAxis
source · [−]pub enum GnuplotAxis {
FromValues {
min: f64,
max: f64,
tics: usize,
},
Labels {
labels: Vec<String, Global>,
},
}
Expand description
For labeling the gnuplot plots axis
Variants
FromValues
Fields
min: f64
minimum value for axis labels
max: f64
maximum value for axis labels
tics: usize
number of tics, should be at least 2
construct the labels
Labels
use labels
Implementations
sourceimpl GnuplotAxis
impl GnuplotAxis
sourcepub fn from_labels(labels: Vec<String, Global>) -> GnuplotAxis
pub fn from_labels(labels: Vec<String, Global>) -> GnuplotAxis
Create new GnuplotAxis::Labels
- Vector contains labels used for axis
sourcepub fn from_slice(labels: &[&str]) -> GnuplotAxis
pub fn from_slice(labels: &[&str]) -> GnuplotAxis
Similar to from_labels
- Slice of slice is converted to Vector of Strings and
Self::from_labels(vec)
is called
Trait Implementations
sourceimpl Clone for GnuplotAxis
impl Clone for GnuplotAxis
sourcefn clone(&self) -> GnuplotAxis
fn clone(&self) -> GnuplotAxis
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GnuplotAxis
impl Debug for GnuplotAxis
sourceimpl<'de> Deserialize<'de> for GnuplotAxis
impl<'de> Deserialize<'de> for GnuplotAxis
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<GnuplotAxis, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<GnuplotAxis, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for GnuplotAxis
impl Serialize for GnuplotAxis
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for GnuplotAxis
impl Send for GnuplotAxis
impl Sync for GnuplotAxis
impl Unpin for GnuplotAxis
impl UnwindSafe for GnuplotAxis
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more