pub enum Hint {
Default,
Number,
String,
}Expand description
Which type ToPrimitive prefers when it converts an object.
Variants§
Default
The default hint, which behaves like Hint::Number.
Number
Number(obj) and the arithmetic operators.
String
String(obj) and ToPropertyKey.
Trait Implementations§
impl Copy for Hint
impl Eq for Hint
impl StructuralPartialEq for Hint
Auto Trait Implementations§
impl Forget for Hint
impl Freeze for Hint
impl Move for Hint
impl RefUnwindSafe for Hint
impl Send for Hint
impl Sync for Hint
impl Unpin for Hint
impl UnsafeUnpin for Hint
impl UnwindSafe for Hint
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