pub struct MethodSignature<'a> {
pub type_params: Vec<TypeParameter<'a>>,
pub parameters: Vec<JavaType<'a>>,
pub result: ResultType<'a>,
pub throws: Vec<ThrowsType<'a>>,
}
Expand description
A parsed method signature; encodes type information about a (possibly generic) method declaration. It describes any type parameters of the method; the (possibly parameterized) types of any formal parameters; the (possibly parameterized) return type, if any; and the types of any exceptions declared in the method’s throws clause.
See the specification for details.
Fields§
§type_params: Vec<TypeParameter<'a>>
§parameters: Vec<JavaType<'a>>
§result: ResultType<'a>
§throws: Vec<ThrowsType<'a>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MethodSignature<'a>
impl<'a> RefUnwindSafe for MethodSignature<'a>
impl<'a> Send for MethodSignature<'a>
impl<'a> Sync for MethodSignature<'a>
impl<'a> Unpin for MethodSignature<'a>
impl<'a> UnwindSafe for MethodSignature<'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