pub struct DataFillTheme { /* private fields */ }Expand description
Mapped fill alpha and a structural optional outline.
Implementations§
Source§impl DataFillTheme
impl DataFillTheme
Sourcepub fn new(fill_alpha: f64, outline: Option<DataOutlineTheme>) -> Result<Self>
pub fn new(fill_alpha: f64, outline: Option<DataOutlineTheme>) -> Result<Self>
Construct mapped fill alpha and its independently owned optional outline.
Sourcepub fn get_fill_alpha(&self) -> f64
pub fn get_fill_alpha(&self) -> f64
Inspect fill alpha, including transparent and opaque endpoints.
Sourcepub fn get_outline(&self) -> Option<&DataOutlineTheme>
pub fn get_outline(&self) -> Option<&DataOutlineTheme>
Borrow the optional independent outline.
Sourcepub fn fill_alpha(self, fill_alpha: f64) -> Result<Self>
pub fn fill_alpha(self, fill_alpha: f64) -> Result<Self>
Replace only fill alpha.
Sourcepub fn outline(self, outline: Option<DataOutlineTheme>) -> Result<Self>
pub fn outline(self, outline: Option<DataOutlineTheme>) -> Result<Self>
Replace the complete optional outline without changing fill alpha.
Trait Implementations§
Source§impl Clone for DataFillTheme
impl Clone for DataFillTheme
Source§impl Debug for DataFillTheme
impl Debug for DataFillTheme
Source§impl PartialEq for DataFillTheme
impl PartialEq for DataFillTheme
impl StructuralPartialEq for DataFillTheme
Auto Trait Implementations§
impl Forget for DataFillTheme
impl Freeze for DataFillTheme
impl Move for DataFillTheme
impl RefUnwindSafe for DataFillTheme
impl Send for DataFillTheme
impl Sync for DataFillTheme
impl Unpin for DataFillTheme
impl UnsafeUnpin for DataFillTheme
impl UnwindSafe for DataFillTheme
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.