pub struct Method<'a> {
pub name: &'a str,
pub arguments: Box<[Argument<'a>]>,
pub annotations: Box<[Annotation<'a>]>,
pub doc: Doc<'a>,
}Expand description
A method on an interface.
Fields§
§name: &'a strThe name of the method.
arguments: Box<[Argument<'a>]>Arguments to the method, in both directions.
annotations: Box<[Annotation<'a>]>Annotations applied to the method.
doc: Doc<'a>Documentation associated with the method.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Method<'a>
impl<'a> RefUnwindSafe for Method<'a>
impl<'a> Send for Method<'a>
impl<'a> Sync for Method<'a>
impl<'a> Unpin for Method<'a>
impl<'a> UnsafeUnpin for Method<'a>
impl<'a> UnwindSafe for Method<'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