#[non_exhaustive]pub enum Completeness {
Complete,
Incomplete,
Invalid(Vec<Diagnostic>),
}Expand description
The completion state of input, decided by syntax alone (section 7.5 of spec/host/07-repl.md).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Complete
Can be read as one input.
Incomplete
Cannot be read because the end of input was reached (a { } block or the 「 of a quote line is not closed).
Invalid(Vec<Diagnostic>)
There is an error in the middle of the input that writing more will not fix. Diagnostics are in input position order.
Trait Implementations§
Source§impl Clone for Completeness
impl Clone for Completeness
Source§impl Debug for Completeness
impl Debug for Completeness
Source§impl PartialEq for Completeness
impl PartialEq for Completeness
impl StructuralPartialEq for Completeness
Auto Trait Implementations§
impl Forget for Completeness
impl Freeze for Completeness
impl Move for Completeness
impl RefUnwindSafe for Completeness
impl Send for Completeness
impl Sync for Completeness
impl Unpin for Completeness
impl UnsafeUnpin for Completeness
impl UnwindSafe for Completeness
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