pub struct GuideCustom {
pub title: Option<String>,
pub width: f64,
pub height: f64,
pub draw: CustomGuideDraw,
}Expand description
A legend entry drawn by your own code — ggplot2’s guide_custom(grob, width, height, title) (#409): a width × height px box in the legend
stack (under title, if any), handed to draw to paint with the usual
DrawBackend calls. Add with
GGPlot::guide_custom.
Fields§
§title: Option<String>§width: f64§height: f64§draw: CustomGuideDrawImplementations§
Source§impl GuideCustom
impl GuideCustom
Trait Implementations§
Source§impl Clone for GuideCustom
impl Clone for GuideCustom
Auto Trait Implementations§
impl !RefUnwindSafe for GuideCustom
impl !UnwindSafe for GuideCustom
impl Freeze for GuideCustom
impl Send for GuideCustom
impl Sync for GuideCustom
impl Unpin for GuideCustom
impl UnsafeUnpin for GuideCustom
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<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