Struct Edits

Source
pub struct Edits { /* private fields */ }

Implementations§

Source§

impl Edits

Source

pub fn annotation_position(&mut self, annotation_position: bool) -> &mut Self

Determines if the main anchor of the annotation is editable. The main anchor corresponds to the text (if no arrow) or the arrow (which drags the whole thing leaving the arrow length & direction unchanged).

default: false

Source

pub fn annotation_tail(&mut self, annotation_tail: bool) -> &mut Self

Has only an effect for annotations with arrows. Enables changing the length and direction of the arrow.

default: false

Source

pub fn annotation_text(&mut self, annotation_text: bool) -> &mut Self

Enables editing annotation text.

default: false

Source

pub fn axis_title_text(&mut self, axis_title_text: bool) -> &mut Self

Enables editing axis title text.

default: false

Source

pub fn colorbar_position(&mut self, colorbar_position: bool) -> &mut Self

Enables moving colorbars.

default: false

Source

pub fn colorbar_title_text(&mut self, colorbar_title_text: bool) -> &mut Self

Enables editing colorbar title text.

default: false

Source

pub fn legend_position(&mut self, legend_position: bool) -> &mut Self

Enables moving the legend.

default: false

Source

pub fn legend_text(&mut self, legend_text: bool) -> &mut Self

Enables editing the trace name fields from the legend

default: false

Source

pub fn shape_position(&mut self, shape_position: bool) -> &mut Self

Enables moving shapes.

default: false

Source

pub fn title_text(&mut self, title_text: bool) -> &mut Self

Enables editing the global layout title.

default: false

Trait Implementations§

Source§

impl Default for Edits

Source§

fn default() -> Edits

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

impl Serialize for Edits

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 Freeze for Edits

§

impl RefUnwindSafe for Edits

§

impl Send for Edits

§

impl Sync for Edits

§

impl Unpin for Edits

§

impl UnwindSafe for Edits

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.