pub struct FillRoles { /* private fields */ }Expand description
Complete immutable FillRoles appearance component.
Implementations§
Source§impl FillRoles
impl FillRoles
Sourcepub fn new(
bodies: BodyFillRoles,
bands: BandFillRoles,
densities: DensityFillRoles,
) -> Result<Self>
pub fn new( bodies: BodyFillRoles, bands: BandFillRoles, densities: DensityFillRoles, ) -> Result<Self>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_bodies(&self) -> &BodyFillRoles
pub fn get_bodies(&self) -> &BodyFillRoles
Borrow the complete bodies value.
Sourcepub fn bodies(self, value: BodyFillRoles) -> Result<Self>
pub fn bodies(self, value: BodyFillRoles) -> Result<Self>
Replace only bodies, validating the complete resulting component.
Sourcepub fn get_bands(&self) -> &BandFillRoles
pub fn get_bands(&self) -> &BandFillRoles
Borrow the complete bands value.
Sourcepub fn bands(self, value: BandFillRoles) -> Result<Self>
pub fn bands(self, value: BandFillRoles) -> Result<Self>
Replace only bands, validating the complete resulting component.
Sourcepub fn get_densities(&self) -> &DensityFillRoles
pub fn get_densities(&self) -> &DensityFillRoles
Borrow the complete densities value.
Sourcepub fn densities(self, value: DensityFillRoles) -> Result<Self>
pub fn densities(self, value: DensityFillRoles) -> Result<Self>
Replace only densities, validating the complete resulting component.
Trait Implementations§
impl StructuralPartialEq for FillRoles
Auto Trait Implementations§
impl Forget for FillRoles
impl Freeze for FillRoles
impl Move for FillRoles
impl RefUnwindSafe for FillRoles
impl Send for FillRoles
impl Sync for FillRoles
impl Unpin for FillRoles
impl UnsafeUnpin for FillRoles
impl UnwindSafe for FillRoles
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.