pub struct PropertyId(pub &'static str);Expand description
Stable, human-readable identifier for a material property. Backed by a string literal - no registry needed, no per-frame allocation (PropertyId is just a (ptr, len) pair, Copy).
Tuple Fields§
§0: &'static strImplementations§
Trait Implementations§
Source§impl Clone for PropertyId
impl Clone for PropertyId
Source§fn clone(&self) -> PropertyId
fn clone(&self) -> PropertyId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PropertyId
Source§impl Debug for PropertyId
impl Debug for PropertyId
Source§impl Display for PropertyId
impl Display for PropertyId
impl Eq for PropertyId
Source§impl Hash for PropertyId
impl Hash for PropertyId
Source§impl PartialEq for PropertyId
impl PartialEq for PropertyId
Source§fn eq(&self, other: &PropertyId) -> bool
fn eq(&self, other: &PropertyId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PropertyId
Auto Trait Implementations§
impl Freeze for PropertyId
impl RefUnwindSafe for PropertyId
impl Send for PropertyId
impl Sync for PropertyId
impl Unpin for PropertyId
impl UnsafeUnpin for PropertyId
impl UnwindSafe for PropertyId
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