#[non_exhaustive]pub struct GeneralEnclosed {
pub tokens: Vec<Token>,
}Expand description
<general-enclosed>: a syntactically well-bracketed but not
further interpretable block, kept verbatim as a forward-
compatibility fallback (spec §3, prose right after the grammar) —
not a parse error. Holds the raw tokens of the block’s content: for
the ( <any-value>? ) alternative, the tokens between the
parentheses (parentheses themselves excluded); for the
<function-token> <any-value>? ) alternative, the function token
followed by its argument tokens (closing ) excluded). See
crate::parser.
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.tokens: Vec<Token>The raw tokens of the block’s content, see the type-level doc comment above for exactly which tokens are included/excluded.
Trait Implementations§
Source§impl Clone for GeneralEnclosed
impl Clone for GeneralEnclosed
Source§fn clone(&self) -> GeneralEnclosed
fn clone(&self) -> GeneralEnclosed
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GeneralEnclosed
impl Debug for GeneralEnclosed
Source§impl PartialEq for GeneralEnclosed
impl PartialEq for GeneralEnclosed
impl StructuralPartialEq for GeneralEnclosed
Auto Trait Implementations§
impl Freeze for GeneralEnclosed
impl RefUnwindSafe for GeneralEnclosed
impl Send for GeneralEnclosed
impl Sync for GeneralEnclosed
impl Unpin for GeneralEnclosed
impl UnsafeUnpin for GeneralEnclosed
impl UnwindSafe for GeneralEnclosed
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