#[non_exhaustive]pub struct Subexpression {
pub element: Box<TemplateElement>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.element: Box<TemplateElement>
Implementations§
Source§impl Subexpression
impl Subexpression
pub fn new( name: Parameter, params: Vec<Parameter>, hash: HashMap<String, Parameter>, ) -> Subexpression
pub fn is_helper(&self) -> bool
pub fn as_element(&self) -> &TemplateElement
pub fn name(&self) -> &str
pub fn params(&self) -> Option<&Vec<Parameter>>
pub fn hash(&self) -> Option<&HashMap<String, Parameter>>
Trait Implementations§
Source§impl Clone for Subexpression
impl Clone for Subexpression
Source§fn clone(&self) -> Subexpression
fn clone(&self) -> Subexpression
Returns a copy 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 Subexpression
impl Debug for Subexpression
Source§impl PartialEq for Subexpression
impl PartialEq for Subexpression
impl Eq for Subexpression
impl StructuralPartialEq for Subexpression
Auto Trait Implementations§
impl Freeze for Subexpression
impl RefUnwindSafe for Subexpression
impl Send for Subexpression
impl Sync for Subexpression
impl Unpin for Subexpression
impl UnwindSafe for Subexpression
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