pub struct GridOption {
pub left: Option<Position>,
pub right: Option<Position>,
pub top: Option<Position>,
pub bottom: Option<Position>,
pub contain_label: Option<bool>,
pub width: Option<f64>,
pub height: Option<f64>,
pub background_color: Option<String>,
pub show: bool,
pub border_color: Option<String>,
pub border_width: Option<f64>,
}Expand description
The options of a cartesian grid.
Fields§
§left: Option<Position>The left edge of the grid.
right: Option<Position>The right edge of the grid.
top: Option<Position>The top edge of the grid.
bottom: Option<Position>The bottom edge of the grid.
contain_label: Option<bool>Whether the grid’s size accounts for the axis labels.
width: Option<f64>The width of the grid.
height: Option<f64>The height of the grid.
background_color: Option<String>The background colour of the grid.
show: boolWhether the grid is drawn.
border_color: Option<String>The border colour of the grid.
border_width: Option<f64>The border width of the grid.
Implementations§
Source§impl GridOption
Inherent implementation of GridOption.
impl GridOption
Inherent implementation of GridOption.
Trait Implementations§
Source§impl Clone for GridOption
impl Clone for GridOption
Source§impl Debug for GridOption
impl Debug for GridOption
Source§impl Default for GridOption
impl Default for GridOption
Source§impl PartialEq for GridOption
impl PartialEq for GridOption
impl StructuralPartialEq for GridOption
Auto Trait Implementations§
impl Freeze for GridOption
impl RefUnwindSafe for GridOption
impl Send for GridOption
impl Sync for GridOption
impl Unpin for GridOption
impl UnsafeUnpin for GridOption
impl UnwindSafe for GridOption
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more