#[non_exhaustive]pub struct CallRecognition {
pub receiver: Option<&'static str>,
pub member: &'static str,
pub rule: RuleId,
}Expand description
Exact syntactic call name that can be recognized without semantic inspection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.receiver: Option<&'static str>Static namespace receiver, or None for a global free function.
member: &'static strFunction or static method name.
rule: RuleIdShared rule selected by this exact source spelling.
Trait Implementations§
Source§impl Clone for CallRecognition
impl Clone for CallRecognition
Source§fn clone(&self) -> CallRecognition
fn clone(&self) -> CallRecognition
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 moreimpl Copy for CallRecognition
Source§impl Debug for CallRecognition
impl Debug for CallRecognition
impl Eq for CallRecognition
Source§impl PartialEq for CallRecognition
impl PartialEq for CallRecognition
Source§fn eq(&self, other: &CallRecognition) -> bool
fn eq(&self, other: &CallRecognition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CallRecognition
Auto Trait Implementations§
impl Freeze for CallRecognition
impl RefUnwindSafe for CallRecognition
impl Send for CallRecognition
impl Sync for CallRecognition
impl Unpin for CallRecognition
impl UnsafeUnpin for CallRecognition
impl UnwindSafe for CallRecognition
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