pub enum Callable {
Constructor(Function),
Method(Method),
Function(Function),
}Variants§
Implementations§
Source§impl Callable
impl Callable
pub fn is_constructor(&self) -> bool
pub fn is_method(&self) -> bool
pub fn is_function(&self) -> bool
pub fn as_function(&self) -> Option<&Function>
pub fn as_method(&self) -> Option<&Method>
pub fn name(&self) -> &str
pub fn c_identifier(&self) -> Option<&str>
pub fn moved_to(&self) -> Option<&str>
pub fn throws(&self) -> bool
pub fn return_value(&self) -> &ReturnValue
pub fn parameters(&self) -> &Parameters
Trait Implementations§
impl Eq for Callable
impl StructuralPartialEq for Callable
Source§impl XmlDeserialize for Callable
impl XmlDeserialize for Callable
fn deserialize<B: BufRead>( _tag_: &[u8], _reader_: &mut Reader<B>, _attrs_: Attributes<'_>, _is_empty_: bool, ) -> Self
A helper function used when ty =
untag. It could help
us to find out the children tags when deserializingfn de_root() -> Option<&'static [u8]>
§fn __deserialize_from_unparsed_array(
_array: Vec<(&'static [u8], Unparsed)>,
) -> Self
fn __deserialize_from_unparsed_array( _array: Vec<(&'static [u8], Unparsed)>, ) -> Self
A helper function used when handling the untag types. Read more
fn __deserialize_from_text(_: &str) -> Option<Self>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for Callable
impl RefUnwindSafe for Callable
impl Send for Callable
impl Sync for Callable
impl Unpin for Callable
impl UnsafeUnpin for Callable
impl UnwindSafe for Callable
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