pub enum PolygonRole {
Circle,
Square,
Triangle,
}Expand description
Basic semantic polygon tokens bundled in tokens/material.json.
Variants§
Circle
Circular polygon token.
Square
Rounded square polygon token.
Triangle
Rounded triangle polygon token.
Implementations§
Source§impl PolygonRole
impl PolygonRole
Sourcepub const fn spec(self) -> PolygonSpec
pub const fn spec(self) -> PolygonSpec
Resolves this polygon role to its source PolygonSpec.
Trait Implementations§
Source§impl Clone for PolygonRole
impl Clone for PolygonRole
impl Copy for PolygonRole
Source§impl Debug for PolygonRole
impl Debug for PolygonRole
impl Eq for PolygonRole
Source§impl From<PolygonRole> for MaterialShape
impl From<PolygonRole> for MaterialShape
Source§fn from(role: PolygonRole) -> Self
fn from(role: PolygonRole) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PolygonRole
impl PartialEq for PolygonRole
impl StructuralPartialEq for PolygonRole
Auto Trait Implementations§
impl Forget for PolygonRole
impl Freeze for PolygonRole
impl Move for PolygonRole
impl RefUnwindSafe for PolygonRole
impl Send for PolygonRole
impl Sync for PolygonRole
impl Unpin for PolygonRole
impl UnsafeUnpin for PolygonRole
impl UnwindSafe for PolygonRole
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.