pub struct FrameStyle { /* private fields */ }Implementations§
Source§impl FrameStyle
impl FrameStyle
pub fn enabled(&self) -> bool
pub fn get_color(&self) -> &str
pub fn get_opacity(&self) -> f32
pub fn get_thickness(&self) -> f32
pub fn attrs(&self) -> impl DoubleEndedIterator<Item = (&String, &String)>
pub fn disable(self) -> Self
pub fn enable(self) -> Self
pub fn color<S: Display>(self, color: S) -> Self
pub fn opacity<I: Into<f64>>(self, new_opacity: I) -> Self
pub fn thickness<I: Into<f64>>(self, new_thickness: I) -> Self
Trait Implementations§
Source§impl Clone for FrameStyle
impl Clone for FrameStyle
Source§fn clone(&self) -> FrameStyle
fn clone(&self) -> FrameStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameStyle
impl Debug for FrameStyle
Source§impl<'de> Deserialize<'de> for FrameStyle
impl<'de> Deserialize<'de> for FrameStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FrameStyle
impl RefUnwindSafe for FrameStyle
impl Send for FrameStyle
impl Sync for FrameStyle
impl Unpin for FrameStyle
impl UnwindSafe for FrameStyle
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