pub enum CallSyntax {
Path(Vec<String>),
SelfMethod(String),
Method {
receiver: String,
method: String,
},
Expression(String),
CompilerConfirmed(Box<CallSyntax>),
}Variants§
Path(Vec<String>)
SelfMethod(String)
Method
Expression(String)
An explicit call whose callable is itself an expression (a returned closure, function-valued field, index, conditional, and so on). The language backend supplies its semantic target; common syntax fallback deliberately does not guess one from this display fragment.
CompilerConfirmed(Box<CallSyntax>)
Syntax written inside an expression-evaluating macro. It is retained only when the semantic backend confirms a corresponding runtime call; macro token trees are otherwise not assumed to execute as Rust code.
Implementations§
Source§impl CallSyntax
impl CallSyntax
pub fn key_fragment(&self) -> String
pub fn visible(&self) -> &Self
pub fn requires_compiler_confirmation(&self) -> bool
Trait Implementations§
Source§impl Clone for CallSyntax
impl Clone for CallSyntax
Source§impl Debug for CallSyntax
impl Debug for CallSyntax
Source§impl<'de> Deserialize<'de> for CallSyntax
impl<'de> Deserialize<'de> for CallSyntax
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CallSyntax
Source§impl PartialEq for CallSyntax
impl PartialEq for CallSyntax
Source§impl Serialize for CallSyntax
impl Serialize for CallSyntax
impl StructuralPartialEq for CallSyntax
Auto Trait Implementations§
impl DynSend for CallSyntax
impl DynSync for CallSyntax
impl Freeze for CallSyntax
impl RefUnwindSafe for CallSyntax
impl Send for CallSyntax
impl Sync for CallSyntax
impl Unpin for CallSyntax
impl UnsafeUnpin for CallSyntax
impl UnwindSafe for CallSyntax
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