pub struct Enclosure<'a, T> {
pub kind: EnclosureKind<'a>,
pub children: Vec<T>,
}
Fields§
§kind: EnclosureKind<'a>
§children: Vec<T>
Implementations§
Source§impl<'a, T> Enclosure<'a, T>
impl<'a, T> Enclosure<'a, T>
pub fn is_curly_brace(&self) -> bool
pub fn is_square_parens(&self) -> bool
pub fn is_parens(&self) -> bool
pub fn is_error(&self) -> bool
pub fn is_fragment(&self) -> bool
Source§impl<'a, T> Enclosure<'a, T>
impl<'a, T> Enclosure<'a, T>
pub fn new_curly_brace(children: Vec<T>) -> Self
pub fn new_curly_brace_(child: T) -> Self
Trait Implementations§
impl<'a, T> StructuralPartialEq for Enclosure<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Enclosure<'a, T>
impl<'a, T> RefUnwindSafe for Enclosure<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Enclosure<'a, T>where
T: Send,
impl<'a, T> Sync for Enclosure<'a, T>where
T: Sync,
impl<'a, T> Unpin for Enclosure<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Enclosure<'a, T>where
T: UnwindSafe,
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