Enum swc_html_visit::AstParentNodeRef
source · [−]pub enum AstParentNodeRef<'ast> {
Document(&'ast Document, DocumentField),
DocumentFragment(&'ast DocumentFragment, DocumentFragmentField),
Child(&'ast Child, ChildField),
DocumentType(&'ast DocumentType, DocumentTypeField),
Element(&'ast Element, ElementField),
Attribute(&'ast Attribute, AttributeField),
Text(&'ast Text, TextField),
Comment(&'ast Comment, CommentField),
}
Variants
Document(&'ast Document, DocumentField)
DocumentFragment(&'ast DocumentFragment, DocumentFragmentField)
Child(&'ast Child, ChildField)
DocumentType(&'ast DocumentType, DocumentTypeField)
Element(&'ast Element, ElementField)
Attribute(&'ast Attribute, AttributeField)
Text(&'ast Text, TextField)
Comment(&'ast Comment, CommentField)
Implementations
sourceimpl AstParentNodeRef<'_>
impl AstParentNodeRef<'_>
pub fn kind(&self) -> AstParentKind
Trait Implementations
sourceimpl<'ast> Clone for AstParentNodeRef<'ast>
impl<'ast> Clone for AstParentNodeRef<'ast>
sourcefn clone(&self) -> AstParentNodeRef<'ast>
fn clone(&self) -> AstParentNodeRef<'ast>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'ast> Debug for AstParentNodeRef<'ast>
impl<'ast> Debug for AstParentNodeRef<'ast>
sourceimpl<'ast> PartialEq<AstParentNodeRef<'ast>> for AstParentNodeRef<'ast>
impl<'ast> PartialEq<AstParentNodeRef<'ast>> for AstParentNodeRef<'ast>
sourcefn eq(&self, other: &AstParentNodeRef<'ast>) -> bool
fn eq(&self, other: &AstParentNodeRef<'ast>) -> bool
impl<'ast> Copy for AstParentNodeRef<'ast>
impl<'ast> StructuralPartialEq for AstParentNodeRef<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for AstParentNodeRef<'ast>
impl<'ast> Send for AstParentNodeRef<'ast>
impl<'ast> Sync for AstParentNodeRef<'ast>
impl<'ast> Unpin for AstParentNodeRef<'ast>
impl<'ast> UnwindSafe for AstParentNodeRef<'ast>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more