Struct Header

Source
pub struct Header<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> Header<'a>

Source

pub fn values(&mut self, values: &'a [f64]) -> &mut Self

Header cell values. values[m][n] represents the value of the nth point in column m, therefore the values[m] vector length for all columns must be the same (longer vectors will be truncated). Each value must be a finite number or a string.

default: []

Source

pub fn format(&mut self, format: &'a [f64]) -> &mut Self

Sets the cell value formatting rule using d3 formatting mini-language which is similar to those of Python. See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format

default: []

Source

pub fn prefix(&mut self, prefix: &'a str) -> &mut Self

Prefix for cell values.

default: null

Source

pub fn suffix(&mut self, suffix: &'a str) -> &mut Self

Suffix for cell values.

default: null

Source

pub fn height(&mut self, height: f64) -> &mut Self

The height of cells.

default: 28

Source

pub fn align(&mut self, align: Align) -> &mut Self

Sets the horizontal alignment of the text within the box. Has an effect only if text spans two or more lines (i.e. text contains one or more
HTML tags) or if an explicit width is set to override the text width.

default: center

Source

pub fn line(&mut self) -> &mut Line<'a>

Source

pub fn fill(&mut self) -> &mut Fill<'a>

Source

pub fn font(&mut self) -> &mut Font<'a>

Trait Implementations§

Source§

impl<'a> Default for Header<'a>

Source§

fn default() -> Header<'a>

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

impl<'a> Serialize for Header<'a>

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

Auto Trait Implementations§

§

impl<'a> Freeze for Header<'a>

§

impl<'a> RefUnwindSafe for Header<'a>

§

impl<'a> Send for Header<'a>

§

impl<'a> Sync for Header<'a>

§

impl<'a> Unpin for Header<'a>

§

impl<'a> UnwindSafe for Header<'a>

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> 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, 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.