pub enum ParsedFunctionReference {
Function {
function: String,
},
RawResourceConstructor {
resource: String,
},
RawResourceDrop {
resource: String,
},
RawResourceMethod {
resource: String,
method: String,
},
RawResourceStaticMethod {
resource: String,
method: String,
},
}Variants§
Implementations§
Source§impl ParsedFunctionReference
impl ParsedFunctionReference
pub fn function_name(&self) -> String
pub fn resource_method_name(&self) -> Option<String>
pub fn method_as_static(&self) -> Option<ParsedFunctionReference>
pub fn resource_name(&self) -> Option<&String>
Trait Implementations§
Source§impl Clone for ParsedFunctionReference
impl Clone for ParsedFunctionReference
Source§fn clone(&self) -> ParsedFunctionReference
fn clone(&self) -> ParsedFunctionReference
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 moreSource§impl Debug for ParsedFunctionReference
impl Debug for ParsedFunctionReference
Source§impl Display for ParsedFunctionReference
impl Display for ParsedFunctionReference
Source§impl Hash for ParsedFunctionReference
impl Hash for ParsedFunctionReference
Source§impl PartialEq for ParsedFunctionReference
impl PartialEq for ParsedFunctionReference
impl Eq for ParsedFunctionReference
impl StructuralPartialEq for ParsedFunctionReference
Auto Trait Implementations§
impl Freeze for ParsedFunctionReference
impl RefUnwindSafe for ParsedFunctionReference
impl Send for ParsedFunctionReference
impl Sync for ParsedFunctionReference
impl Unpin for ParsedFunctionReference
impl UnsafeUnpin for ParsedFunctionReference
impl UnwindSafe for ParsedFunctionReference
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.