pub struct MessageHandlerMethod<'a> { /* private fields */ }
Implementations§
Source§impl<'b> MessageHandlerMethod<'b>
impl<'b> MessageHandlerMethod<'b>
pub fn new(method: &ImplItemFn) -> Result<MessageHandlerMethod<'_>>
pub fn get_name_snake_case(&self) -> &Ident
pub fn get_name_camel_case(&self) -> Ident
pub fn has_return_type(&self) -> bool
pub fn get_return_type(&self) -> Option<&'b Type>
pub fn get_parameter_names(&self) -> Vec<&Ident>
Trait Implementations§
Source§impl<'a> Clone for MessageHandlerMethod<'a>
impl<'a> Clone for MessageHandlerMethod<'a>
Source§fn clone(&self) -> MessageHandlerMethod<'a>
fn clone(&self) -> MessageHandlerMethod<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for MessageHandlerMethod<'a>
impl<'a> RefUnwindSafe for MessageHandlerMethod<'a>
impl<'a> !Send for MessageHandlerMethod<'a>
impl<'a> !Sync for MessageHandlerMethod<'a>
impl<'a> Unpin for MessageHandlerMethod<'a>
impl<'a> UnwindSafe for MessageHandlerMethod<'a>
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