pub struct MethodSignature {
pub name: SharedString,
pub params: Vec<TypeId>,
pub return_type: TypeId,
pub throws: Vec<TypeId>,
pub modifiers: MethodModifiers,
}Expand description
Type-level method signature for overload resolution.
Fields§
§name: SharedStringMethod name (constructors use the class name).
params: Vec<TypeId>Parameter types in declaration order.
return_type: TypeIdReturn type for the method.
throws: Vec<TypeId>Declared checked exceptions.
modifiers: MethodModifiersVisibility and behavior modifiers.
Implementations§
Source§impl MethodSignature
impl MethodSignature
pub fn new( name: SharedString, params: Vec<TypeId>, return_type: TypeId, modifiers: MethodModifiers, ) -> Self
pub fn with_throws(self, throws: Vec<TypeId>) -> Self
Trait Implementations§
Source§impl Clone for MethodSignature
impl Clone for MethodSignature
Source§fn clone(&self) -> MethodSignature
fn clone(&self) -> MethodSignature
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 MethodSignature
impl Debug for MethodSignature
Source§impl PartialEq for MethodSignature
impl PartialEq for MethodSignature
impl StructuralPartialEq for MethodSignature
Auto Trait Implementations§
impl Freeze for MethodSignature
impl RefUnwindSafe for MethodSignature
impl Send for MethodSignature
impl Sync for MethodSignature
impl Unpin for MethodSignature
impl UnsafeUnpin for MethodSignature
impl UnwindSafe for MethodSignature
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