pub struct Options<'a> { /* private fields */ }Implementations§
Source§impl<'a> Options<'a>
impl<'a> Options<'a>
pub fn new() -> Self
pub const fn profile(self, profile: &'a Profile) -> Self
pub const fn font(self, font: &'a Font) -> Self
pub const fn scale(self, scale: f64) -> Self
pub const fn outline_width(self, outline_width: f64) -> Self
pub const fn show_keys(self, show_keys: bool) -> Self
pub const fn show_margin(self, show_margin: bool) -> Self
pub fn draw(&self, keys: &[Key]) -> Drawing
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Options<'a>
impl<'a> !RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> !UnwindSafe for Options<'a>
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