pub struct ElementShape<'a> {
pub name: &'a str,
pub props: Vec<&'a str>,
pub keywords: Vec<(&'a str, &'a str)>,
pub has_template: bool,
pub children: Option<Vec<ChildShape<'a>>>,
pub has_action: bool,
pub parent: Option<&'a str>,
pub is_root: bool,
}Expand description
The syntactic outline of an element, as seen by any parser.
Fields§
§name: &'a str§props: Vec<&'a str>§keywords: Vec<(&'a str, &'a str)>The properties written as a lone keyword, as ("fit", "cover").
has_template: bool§children: Option<Vec<ChildShape<'a>>>§has_action: bool§parent: Option<&'a str>§is_root: boolAuto Trait Implementations§
impl<'a> Freeze for ElementShape<'a>
impl<'a> RefUnwindSafe for ElementShape<'a>
impl<'a> Send for ElementShape<'a>
impl<'a> Sync for ElementShape<'a>
impl<'a> Unpin for ElementShape<'a>
impl<'a> UnsafeUnpin for ElementShape<'a>
impl<'a> UnwindSafe for ElementShape<'a>
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