pub struct PointRoles { /* private fields */ }Expand description
Complete immutable PointRoles appearance component.
Implementations§
Source§impl PointRoles
impl PointRoles
Sourcepub fn new(
primary: PointTheme,
raw_overlay: SizedPointTheme,
mandatory_strip: SizedPointTheme,
radii: PointRadii,
supplemental: SupplementalPointTheme,
) -> Result<Self>
pub fn new( primary: PointTheme, raw_overlay: SizedPointTheme, mandatory_strip: SizedPointTheme, radii: PointRadii, supplemental: SupplementalPointTheme, ) -> Result<Self>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_primary(&self) -> &PointTheme
pub fn get_primary(&self) -> &PointTheme
Borrow the complete primary value.
Sourcepub fn primary(self, value: PointTheme) -> Result<Self>
pub fn primary(self, value: PointTheme) -> Result<Self>
Replace only primary, validating the complete resulting component.
Sourcepub fn get_raw_overlay(&self) -> &SizedPointTheme
pub fn get_raw_overlay(&self) -> &SizedPointTheme
Borrow the complete raw_overlay value.
Sourcepub fn raw_overlay(self, value: SizedPointTheme) -> Result<Self>
pub fn raw_overlay(self, value: SizedPointTheme) -> Result<Self>
Replace only raw_overlay, validating the complete resulting component.
Sourcepub fn get_mandatory_strip(&self) -> &SizedPointTheme
pub fn get_mandatory_strip(&self) -> &SizedPointTheme
Borrow the complete mandatory_strip value.
Sourcepub fn mandatory_strip(self, value: SizedPointTheme) -> Result<Self>
pub fn mandatory_strip(self, value: SizedPointTheme) -> Result<Self>
Replace only mandatory_strip, validating the complete resulting component.
Sourcepub fn get_radii(&self) -> &PointRadii
pub fn get_radii(&self) -> &PointRadii
Borrow the complete radii value.
Sourcepub fn radii(self, value: PointRadii) -> Result<Self>
pub fn radii(self, value: PointRadii) -> Result<Self>
Replace only radii, validating the complete resulting component.
Sourcepub fn get_supplemental(&self) -> &SupplementalPointTheme
pub fn get_supplemental(&self) -> &SupplementalPointTheme
Borrow the complete supplemental value.
Sourcepub fn supplemental(self, value: SupplementalPointTheme) -> Result<Self>
pub fn supplemental(self, value: SupplementalPointTheme) -> Result<Self>
Replace only supplemental, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for PointRoles
impl Clone for PointRoles
Source§impl Debug for PointRoles
impl Debug for PointRoles
Source§impl PartialEq for PointRoles
impl PartialEq for PointRoles
impl StructuralPartialEq for PointRoles
Auto Trait Implementations§
impl Forget for PointRoles
impl Freeze for PointRoleswhere
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
impl Move for PointRoles
impl RefUnwindSafe for PointRoles
impl Send for PointRoles
impl Sync for PointRoles
impl Unpin for PointRoles
impl UnsafeUnpin for PointRoleswhere
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
impl UnwindSafe for PointRoleswhere
Arc<SpacingPayload>: UnwindSafe,
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.