pub struct Attribute {
pub line_number: u32,
/* private fields */
}Fields§
§line_number: u32Implementations§
Trait Implementations§
Source§impl Element for Attribute
impl Element for Attribute
fn as_attribute(&self) -> Option<&Attribute>
fn is_attribute(&self) -> bool
fn line_number(&self) -> u32
fn snippet(&self) -> String
fn snippet_with_options(&self, printer: &dyn Printer, gutter: bool) -> String
fn touch(&self)
fn as_embed(&self) -> Option<&Embed>
fn as_field(&self) -> Option<&Field>
fn as_flag(&self) -> Option<&Flag>
fn as_item(&self) -> Option<&Item>
fn as_section(&self) -> Option<&Section>
fn is_embed(&self) -> bool
fn is_field(&self) -> bool
fn is_flag(&self) -> bool
fn is_item(&self) -> bool
fn is_section(&self) -> bool
Auto Trait Implementations§
impl !Freeze for Attribute
impl !RefUnwindSafe for Attribute
impl !Send for Attribute
impl !Sync for Attribute
impl Unpin for Attribute
impl !UnwindSafe for Attribute
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