#[non_exhaustive]pub enum Declared {
Let {
name: String,
value: Value,
ty: Ty,
},
Fn {
name: String,
},
Type {
name: String,
},
Import {
name: String,
},
Identity {
name: String,
},
}Expand description
Something declared by input.
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.
Let
let (the declared variable and its value).
Fn
fn.
Type
struct or enum.
Import
import.
Identity
identity.
Trait Implementations§
impl StructuralPartialEq for Declared
Auto Trait Implementations§
impl Forget for Declared
impl Freeze for Declared
impl Move for Declared
impl RefUnwindSafe for Declared
impl Send for Declared
impl Sync for Declared
impl Unpin for Declared
impl UnsafeUnpin for Declared
impl UnwindSafe for Declared
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