pub struct ScriptExpression {
pub end: usize,
pub object: Option<Vec<(String, usize)>>,
}Expand description
What an expression is, as far as MDX checks it: the byte offset where it ends, before any comments after it, and, for an object literal (parentheses dropped), the ESTree type and byte offset of each property.
Fields§
§end: usize§object: Option<Vec<(String, usize)>>Trait Implementations§
Source§impl Clone for ScriptExpression
impl Clone for ScriptExpression
Source§impl Debug for ScriptExpression
impl Debug for ScriptExpression
impl Eq for ScriptExpression
Source§impl PartialEq for ScriptExpression
impl PartialEq for ScriptExpression
impl StructuralPartialEq for ScriptExpression
Auto Trait Implementations§
impl Freeze for ScriptExpression
impl RefUnwindSafe for ScriptExpression
impl Send for ScriptExpression
impl Sync for ScriptExpression
impl Unpin for ScriptExpression
impl UnsafeUnpin for ScriptExpression
impl UnwindSafe for ScriptExpression
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,
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.