#[non_exhaustive]pub struct UnclosedBlock {
pub start: usize,
pub expected: &'static str,
}Expand description
A source construct missing its closing keyword.
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.start: usizeByte offset of the opening keyword.
expected: &'static strThe closing keyword expected by the parser.
Trait Implementations§
Source§impl Clone for UnclosedBlock
impl Clone for UnclosedBlock
Source§fn clone(&self) -> UnclosedBlock
fn clone(&self) -> UnclosedBlock
Returns a duplicate 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 UnclosedBlock
impl Debug for UnclosedBlock
Source§impl PartialEq for UnclosedBlock
impl PartialEq for UnclosedBlock
impl Eq for UnclosedBlock
impl StructuralPartialEq for UnclosedBlock
Auto Trait Implementations§
impl Freeze for UnclosedBlock
impl RefUnwindSafe for UnclosedBlock
impl Send for UnclosedBlock
impl Sync for UnclosedBlock
impl Unpin for UnclosedBlock
impl UnsafeUnpin for UnclosedBlock
impl UnwindSafe for UnclosedBlock
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