pub struct HtmlAttribute { /* private fields */ }
Implementations§
Source§impl HtmlAttribute
impl HtmlAttribute
Sourcepub fn name(&self) -> Option<SyntaxToken>
pub fn name(&self) -> Option<SyntaxToken>
Name of the attribute (left side of the equal sign)
Sourcepub fn value(&self) -> Option<HtmlString>
pub fn value(&self) -> Option<HtmlString>
Value of the attribute
Sourcepub fn html_tag(&self) -> Option<HtmlStartingTag>
pub fn html_tag(&self) -> Option<HtmlStartingTag>
Parent starting html tag
Trait Implementations§
Source§impl AstNode for HtmlAttribute
impl AstNode for HtmlAttribute
type Language = TemplateLanguage
fn can_cast(kind: <Self::Language as Language>::Kind) -> boolwhere
Self: Sized,
fn cast(node: SyntaxNode<Self::Language>) -> Option<Self>where
Self: Sized,
fn syntax(&self) -> &SyntaxNode<Self::Language>
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Source§impl Clone for HtmlAttribute
impl Clone for HtmlAttribute
Source§fn clone(&self) -> HtmlAttribute
fn clone(&self) -> HtmlAttribute
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HtmlAttribute
impl Debug for HtmlAttribute
Source§impl Display for HtmlAttribute
impl Display for HtmlAttribute
Source§impl Hash for HtmlAttribute
impl Hash for HtmlAttribute
Source§impl PartialEq for HtmlAttribute
impl PartialEq for HtmlAttribute
impl Eq for HtmlAttribute
impl StructuralPartialEq for HtmlAttribute
Auto Trait Implementations§
impl Freeze for HtmlAttribute
impl !RefUnwindSafe for HtmlAttribute
impl !Send for HtmlAttribute
impl !Sync for HtmlAttribute
impl Unpin for HtmlAttribute
impl !UnwindSafe for HtmlAttribute
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