[−][src]Enum dprint_swc_ecma_ast_view::ObjectPatProp
Variants
KeyValue(&'a KeyValuePatProp<'a>)
Assign(&'a AssignPatProp<'a>)
Rest(&'a RestPat<'a>)
Implementations
impl<'a> ObjectPatProp<'a>
[src]
pub fn to<T: CastableNode<'a>>(&self) -> Option<&'a T>
[src]
pub fn expect<T: CastableNode<'a>>(&self) -> &'a T
[src]
pub fn is<T: CastableNode<'a>>(&self) -> bool
[src]
Trait Implementations
impl<'a> Clone for ObjectPatProp<'a>
[src]
pub fn clone(&self) -> ObjectPatProp<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for ObjectPatProp<'a>
[src]
impl<'a> From<&'_ ObjectPatProp<'a>> for Node<'a>
[src]
pub fn from(node: &ObjectPatProp<'a>) -> Node<'a>
[src]
impl<'a> From<ObjectPatProp<'a>> for Node<'a>
[src]
pub fn from(node: ObjectPatProp<'a>) -> Node<'a>
[src]
impl<'a> NodeTrait<'a> for ObjectPatProp<'a>
[src]
pub fn parent(&self) -> Option<Node<'a>>
[src]
pub fn children(&self) -> Vec<Node<'a>>
[src]
pub fn into_node(&self) -> Node<'a>
[src]
pub fn kind(&self) -> NodeKind
[src]
pub fn ancestors(&self) -> AncestorIterator<'a>ⓘNotable traits for AncestorIterator<'a>
impl<'a> Iterator for AncestorIterator<'a> type Item = Node<'a>;
[src]
Notable traits for AncestorIterator<'a>
impl<'a> Iterator for AncestorIterator<'a> type Item = Node<'a>;
pub fn start_line(&self) -> usize
[src]
pub fn end_line(&self) -> usize
[src]
pub fn start_column(&self) -> usize
[src]
pub fn end_column(&self) -> usize
[src]
pub fn width(&self) -> usize
[src]
pub fn child_index(&self) -> usize
[src]
pub fn previous_sibling(&self) -> Option<Node<'a>>
[src]
pub fn previous_siblings(&self) -> Vec<Node<'a>>
[src]
pub fn next_sibling(&self) -> Option<Node<'a>>
[src]
pub fn next_siblings(&self) -> Vec<Node<'a>>
[src]
pub fn tokens(&self) -> &'a [TokenAndSpan]
[src]
pub fn children_with_tokens(&self) -> Vec<NodeOrToken<'a>>
[src]
pub fn children_with_tokens_fast(
&self,
module: &Module<'a>
) -> Vec<NodeOrToken<'a>>
[src]
&self,
module: &Module<'a>
) -> Vec<NodeOrToken<'a>>
pub fn leading_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
[src]
Notable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
pub fn trailing_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
[src]
Notable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
pub fn module(&self) -> &Module<'a>
[src]
pub fn text(&self) -> &'a str
[src]
pub fn previous_token(&self) -> Option<&'a TokenAndSpan>
[src]
pub fn next_token(&self) -> Option<&'a TokenAndSpan>
[src]
pub fn previous_tokens(&self) -> &'a [TokenAndSpan]
[src]
pub fn next_tokens(&self) -> &'a [TokenAndSpan]
[src]
impl<'a> Spanned for ObjectPatProp<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ObjectPatProp<'a>
[src]
impl<'a> !Send for ObjectPatProp<'a>
[src]
impl<'a> !Sync for ObjectPatProp<'a>
[src]
impl<'a> Unpin for ObjectPatProp<'a>
[src]
impl<'a> !UnwindSafe for ObjectPatProp<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Node for T where
T: Any + ?Sized,
T: Any + ?Sized,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,