Skip to main content

EuvChartEncode

Struct EuvChartEncode 

Source
pub struct EuvChartEncode { /* private fields */ }
Expand description

Column mapping binding EuvChartDataset dimensions to series channels.

Implementations§

Source§

impl EuvChartEncode

Fluent builders and accessors for EuvChartEncode.

Source

pub fn x<S>(self, dim: S) -> Self
where S: Into<String>,

Maps the X channel to dimension dim.

§Arguments
  • Self - Source encode mapping.
  • S - Dimension name or column index.
§Returns
  • Self - Updated encode mapping.
Source

pub fn y<S>(self, dim: S) -> Self
where S: Into<String>,

Maps the Y channel to dimension dim.

§Arguments
  • Self - Source encode mapping.
  • S - Dimension name or column index.
§Returns
  • Self - Updated encode mapping.
Source

pub fn value<S>(self, dim: S) -> Self
where S: Into<String>,

Maps the scalar value channel to dimension dim.

§Arguments
  • Self - Source encode mapping.
  • S - Dimension name or column index.
§Returns
  • Self - Updated encode mapping.
Source

pub fn size<S>(self, dim: S) -> Self
where S: Into<String>,

Maps the bubble size channel to dimension dim.

§Arguments
  • Self - Source encode mapping.
  • S - Dimension name or column index.
§Returns
  • Self - Updated encode mapping.
Source

pub fn item_name<S>(self, dim: S) -> Self
where S: Into<String>,

Maps the item caption channel to dimension dim.

§Arguments
  • Self - Source encode mapping.
  • S - Dimension name or column index.
§Returns
  • Self - Updated encode mapping.
Source

pub fn x_opt(&self) -> Option<&str>

Returns the X dimension name if mapped.

§Arguments
  • &Self - Encode mapping.
§Returns
  • Option<&str> - Mapped X dimension.
Source

pub fn y_opt(&self) -> Option<&str>

Returns the Y dimension name if mapped.

§Arguments
  • &Self - Encode mapping.
§Returns
  • Option<&str> - Mapped Y dimension.
Source

pub fn value_opt(&self) -> Option<&str>

Returns the value dimension name if mapped.

§Arguments
  • &Self - Encode mapping.
§Returns
  • Option<&str> - Mapped value dimension.
Source

pub fn size_opt(&self) -> Option<&str>

Returns the size dimension name if mapped.

§Arguments
  • &Self - Encode mapping.
§Returns
  • Option<&str> - Mapped size dimension.
Source

pub fn item_name_opt(&self) -> Option<&str>

Returns the item name dimension if mapped.

§Arguments
  • &Self - Encode mapping.
§Returns
  • Option<&str> - Mapped item name dimension.
Source§

impl EuvChartEncode

Source

pub fn get_mut_x(&mut self) -> &mut Option<String>

Source

pub fn set_x(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_mut_y(&mut self) -> &mut Option<String>

Source

pub fn set_y(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_mut_value(&mut self) -> &mut Option<String>

Source

pub fn set_value(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_mut_size(&mut self) -> &mut Option<String>

Source

pub fn set_size(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_mut_item_name(&mut self) -> &mut Option<String>

Source

pub fn set_item_name(&mut self, val: Option<String>) -> &mut Self

Trait Implementations§

Source§

impl Clone for EuvChartEncode

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for EuvChartEncode

Source§

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

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

impl Default for EuvChartEncode

Source§

fn default() -> Self

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

impl PartialEq for EuvChartEncode

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for EuvChartEncode

Auto Trait Implementations§

§

impl Forget for EuvChartEncode

§

impl Freeze for EuvChartEncode
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for EuvChartEncode

§

impl RefUnwindSafe for EuvChartEncode

§

impl Send for EuvChartEncode
where RawVecInner: Send,

§

impl Sync for EuvChartEncode
where RawVecInner: Sync,

§

impl Unpin for EuvChartEncode
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for EuvChartEncode

§

impl UnwindSafe for EuvChartEncode
where RawVecInner: 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.