pub struct ChainParseOptions { /* private fields */ }Expand description
Parser options for AttributeChain.
Implementations§
Source§impl ChainParseOptions
impl ChainParseOptions
Sourcepub fn completion_marker(self, marker: impl Into<String>) -> Self
pub fn completion_marker(self, marker: impl Into<String>) -> Self
Set the field/method marker inserted when the input ends in a dot.
The marker must be a valid Rust identifier. Invalid markers cause trailing-dot recovery to return a parse error.
Sourcepub fn allow_completion_probe(self, allow: CompletionProbeParsing) -> Self
pub fn allow_completion_probe(self, allow: CompletionProbeParsing) -> Self
Set whether completion-probe parsing is enabled.
Completion probes are useful for consumers that emit typed rust-analyzer probe code. Consumers that only accept complete chains can disable probes to reject both trailing-dot recovery and explicit marker syntax.
Trait Implementations§
Source§impl Clone for ChainParseOptions
impl Clone for ChainParseOptions
Source§fn clone(&self) -> ChainParseOptions
fn clone(&self) -> ChainParseOptions
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 ChainParseOptions
impl Debug for ChainParseOptions
Auto Trait Implementations§
impl Freeze for ChainParseOptions
impl RefUnwindSafe for ChainParseOptions
impl Send for ChainParseOptions
impl Sync for ChainParseOptions
impl Unpin for ChainParseOptions
impl UnsafeUnpin for ChainParseOptions
impl UnwindSafe for ChainParseOptions
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