pub struct SymbolId {
pub id: u64,
pub description: Option<String>,
}Expand description
Unique ECMAScript Symbol identifier.
Fields§
§id: u64§description: Option<String>Implementations§
Source§impl SymbolId
impl SymbolId
pub const ITERATOR: u64 = 1
pub const TO_STRING_TAG: u64 = 2
pub const HAS_INSTANCE: u64 = 3
pub const TO_PRIMITIVE: u64 = 4
pub const fn new(id: u64, description: Option<String>) -> Self
pub fn iterator() -> Self
pub fn to_string_tag() -> Self
pub fn has_instance() -> Self
pub fn to_primitive() -> Self
Trait Implementations§
impl Eq for SymbolId
Source§impl Ord for SymbolId
impl Ord for SymbolId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for SymbolId
impl PartialOrd for SymbolId
impl StructuralPartialEq for SymbolId
Auto Trait Implementations§
impl Forget for SymbolId
impl Freeze for SymbolId
impl Move for SymbolId
impl RefUnwindSafe for SymbolId
impl Send for SymbolId
impl Sync for SymbolId
impl Unpin for SymbolId
impl UnsafeUnpin for SymbolId
impl UnwindSafe for SymbolId
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