pub struct SyntacticHole {
pub hint: Option<String>,
pub offset: usize,
}Expand description
Represents a syntactic “hole” in the AST: a position where a term is missing.
Holes arise from incomplete expressions like _ or unresolved placeholders.
Fields§
§hint: Option<String>Optional human hint about what should fill this hole.
offset: usizeSource byte offset.
Implementations§
Trait Implementations§
Source§impl Clone for SyntacticHole
impl Clone for SyntacticHole
Source§fn clone(&self) -> SyntacticHole
fn clone(&self) -> SyntacticHole
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 moreAuto Trait Implementations§
impl Freeze for SyntacticHole
impl RefUnwindSafe for SyntacticHole
impl Send for SyntacticHole
impl Sync for SyntacticHole
impl Unpin for SyntacticHole
impl UnsafeUnpin for SyntacticHole
impl UnwindSafe for SyntacticHole
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