pub struct StyleId(pub String);Expand description
Identifier for a named style in a StyleSheet.
StyleId is a simple string-based identifier for named styles.
We use &str for lookups and String for storage to balance
ergonomics and performance.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
impl Eq for StyleId
impl StructuralPartialEq for StyleId
Auto Trait Implementations§
impl Freeze for StyleId
impl RefUnwindSafe for StyleId
impl Send for StyleId
impl Sync for StyleId
impl Unpin for StyleId
impl UnsafeUnpin for StyleId
impl UnwindSafe for StyleId
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