Struct Histogram

Source
pub struct Histogram<H>
where H: Serialize + Clone + Default + 'static,
{ /* private fields */ }

Implementations§

Source§

impl<H> Histogram<H>
where H: Serialize + Clone + Default + 'static,

Source

pub fn new<I>(x: I) -> Box<Self>
where I: IntoIterator<Item = H>,

Source

pub fn new_xy<I>(x: I, y: I) -> Box<Self>
where I: IntoIterator<Item = H>,

Source

pub fn new_vertical<I>(y: I) -> Box<Self>
where I: IntoIterator<Item = H>,

Source

pub fn name(self, name: &str) -> Box<Self>

Source

pub fn visible(self, visible: bool) -> Box<Self>

Source

pub fn show_legend(self, show_legend: bool) -> Box<Self>

Source

pub fn legend_group(self, legend_group: &str) -> Box<Self>

Source

pub fn opacity(self, opacity: f64) -> Box<Self>

Source

pub fn text(self, text: &str) -> Box<Self>

Source

pub fn text_array<S: AsRef<str>>(self, text: Vec<S>) -> Box<Self>

Source

pub fn hover_text(self, hover_text: &str) -> Box<Self>

Source

pub fn hover_text_array<S: AsRef<str>>(self, hover_text: Vec<S>) -> Box<Self>

Source

pub fn hover_info(self, hover_info: HoverInfo) -> Box<Self>

Source

pub fn hover_template(self, hover_template: &str) -> Box<Self>

Source

pub fn x_axis(self, axis: &str) -> Box<Self>

Source

pub fn y_axis(self, axis: &str) -> Box<Self>

Source

pub fn hover_template_array<S: AsRef<str>>( self, hover_template: Vec<S>, ) -> Box<Self>

Source

pub fn orientation(self, orientation: Orientation) -> Box<Self>

Source

pub fn hist_func(self, hist_func: HistFunc) -> Box<Self>

Source

pub fn hist_norm(self, hist_norm: HistNorm) -> Box<Self>

Source

pub fn alignment_group(self, alignment_group: &str) -> Box<Self>

Source

pub fn offset_group(self, offset_group: &str) -> Box<Self>

Source

pub fn n_bins_x(self, n_bins_x: usize) -> Box<Self>

Source

pub fn n_bins_y(self, n_bins_y: usize) -> Box<Self>

Source

pub fn auto_bin_x(self, auto_bin_x: bool) -> Box<Self>

Source

pub fn auto_bin_y(self, auto_bin_y: bool) -> Box<Self>

Source

pub fn bin_group(self, bin_group: &str) -> Box<Self>

Source

pub fn x_bins(self, x_bins: Bins) -> Box<Self>

Source

pub fn y_bins(self, y_bins: Bins) -> Box<Self>

Source

pub fn marker(self, marker: Marker) -> Box<Self>

Source

pub fn error_x(self, error_x: ErrorData) -> Box<Self>

Source

pub fn error_y(self, error_y: ErrorData) -> Box<Self>

Source

pub fn cumulative(self, cumulative: Cumulative) -> Box<Self>

Source

pub fn hover_label(self, hover_label: Label) -> Box<Self>

Source

pub fn x_calendar(self, x_calendar: Calendar) -> Box<Self>

Source

pub fn y_calendar(self, y_calendar: Calendar) -> Box<Self>

Trait Implementations§

Source§

impl<H> Clone for Histogram<H>
where H: Serialize + Clone + Default + 'static + Clone,

Source§

fn clone(&self) -> Histogram<H>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<H> Debug for Histogram<H>
where H: Serialize + Clone + Default + 'static + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<H> Default for Histogram<H>
where H: Serialize + Clone + Default + 'static,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<H> Serialize for Histogram<H>
where H: Serialize + Clone + Default + 'static + Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<H> Trace for Histogram<H>
where H: Serialize + Clone + Default + 'static,

Auto Trait Implementations§

§

impl<H> Freeze for Histogram<H>

§

impl<H> RefUnwindSafe for Histogram<H>
where H: RefUnwindSafe,

§

impl<H> Send for Histogram<H>
where H: Send,

§

impl<H> Sync for Histogram<H>
where H: Sync,

§

impl<H> Unpin for Histogram<H>
where H: Unpin,

§

impl<H> UnwindSafe for Histogram<H>
where H: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V