pub struct BoxElem {
pub name: String,
pub orientation: Orientation,
pub argument: f64,
pub spread: BoxSpread,
pub box_width: f64,
pub whisker_width: f64,
pub stroke: Stroke,
pub fill: Color32,
}Expand description
Fields§
§name: StringName of plot element in the diagram (annotated by default formatter).
orientation: OrientationWhich direction the box faces in the diagram.
argument: f64Position on the argument (input) axis – X if vertical, Y if horizontal.
spread: BoxSpreadValues of the box
box_width: f64Thickness of the box
whisker_width: f64Width of the whisker at minimum/maximum
stroke: StrokeLine width and color
fill: Color32Fill color
Implementations§
Source§impl BoxElem
impl BoxElem
Sourcepub fn whisker_width(self, width: f64) -> BoxElem
pub fn whisker_width(self, width: f64) -> BoxElem
Set the whisker width.
Sourcepub fn vertical(self) -> BoxElem
pub fn vertical(self) -> BoxElem
Set orientation of the element as vertical. Argument axis is X.
Sourcepub fn horizontal(self) -> BoxElem
pub fn horizontal(self) -> BoxElem
Set orientation of the element as horizontal. Argument axis is Y.
Trait Implementations§
impl StructuralPartialEq for BoxElem
Auto Trait Implementations§
impl Freeze for BoxElem
impl RefUnwindSafe for BoxElem
impl Send for BoxElem
impl Sync for BoxElem
impl Unpin for BoxElem
impl UnwindSafe for BoxElem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more