#[non_exhaustive]pub enum FieldRule {
TsLength,
TsConstructor,
TsSort,
}Expand description
Field read whose semantics come from the standard library rather than a user-defined type shape.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TsLength
JavaScript .length on string/array-shaped receivers.
TsConstructor
JavaScript .constructor, which Smelt erases to a null value.
TsSort
JavaScript .sort read as a bound array method on erased receivers.
Trait Implementations§
impl Copy for FieldRule
impl Eq for FieldRule
impl StructuralPartialEq for FieldRule
Auto Trait Implementations§
impl Freeze for FieldRule
impl RefUnwindSafe for FieldRule
impl Send for FieldRule
impl Sync for FieldRule
impl Unpin for FieldRule
impl UnsafeUnpin for FieldRule
impl UnwindSafe for FieldRule
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