pub struct OptionKeyFact {
pub key: Box<str>,
pub binding: Box<str>,
pub span_start: u32,
pub has_default: bool,
pub condition_reads: u32,
pub written: bool,
}Expand description
One key of an object-pattern ParamFact: retries in
{ retries = 3, signal: abort }.
Only a static key whose value is a plain binding, with or without a
default, is recorded. A computed or numeric key, a nested pattern, and a
key that Object.prototype holds, such as toString, are not recorded.
Fields§
§key: Box<str>The property key.
binding: Box<str>The local binding name: abort for signal: abort.
span_start: u32Start byte of the binding identifier.
has_default: booltrue when the key has a default value.
condition_reads: u32The count of conditions whose test is the binding or its negation,
as ParamFact::condition_reads counts them.
written: booltrue when the module writes the binding.
Trait Implementations§
Source§impl Clone for OptionKeyFact
impl Clone for OptionKeyFact
Source§impl Debug for OptionKeyFact
impl Debug for OptionKeyFact
impl<'__de> Decode<'__de> for OptionKeyFactwhere
'__de:,
impl Encode for OptionKeyFact
impl Eq for OptionKeyFact
Source§impl PartialEq for OptionKeyFact
impl PartialEq for OptionKeyFact
impl StructuralPartialEq for OptionKeyFact
Auto Trait Implementations§
impl Forget for OptionKeyFact
impl Freeze for OptionKeyFact
impl Move for OptionKeyFact
impl RefUnwindSafe for OptionKeyFact
impl Send for OptionKeyFact
impl Sync for OptionKeyFact
impl Unpin for OptionKeyFact
impl UnsafeUnpin for OptionKeyFact
impl UnwindSafe for OptionKeyFact
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.