pub struct FunctionCallArityFacts { /* private fields */ }Expand description
Extracted structural facts available to rules and callers.
Implementations§
Source§impl FunctionCallArityFacts
impl FunctionCallArityFacts
pub fn call_count(&self) -> usize
pub fn min_arg_count(&self) -> Option<usize>
pub fn max_arg_count(&self) -> Option<usize>
pub fn called_only_without_args(&self) -> bool
pub fn zero_arg_call_spans(&self) -> &[Span]
pub fn zero_arg_diagnostic_spans(&self) -> &[Span]
Trait Implementations§
Source§impl Clone for FunctionCallArityFacts
impl Clone for FunctionCallArityFacts
Source§fn clone(&self) -> FunctionCallArityFacts
fn clone(&self) -> FunctionCallArityFacts
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 FunctionCallArityFacts
impl Debug for FunctionCallArityFacts
Source§impl Default for FunctionCallArityFacts
impl Default for FunctionCallArityFacts
Source§fn default() -> FunctionCallArityFacts
fn default() -> FunctionCallArityFacts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FunctionCallArityFacts
impl RefUnwindSafe for FunctionCallArityFacts
impl Send for FunctionCallArityFacts
impl Sync for FunctionCallArityFacts
impl Unpin for FunctionCallArityFacts
impl UnsafeUnpin for FunctionCallArityFacts
impl UnwindSafe for FunctionCallArityFacts
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