pub struct ExtensionMethod {
pub name: String,
pub this_type: String,
pub arity_min: usize,
pub arity_max: i64,
pub this_args: Option<Vec<String>>,
}Expand description
One extensionMethods entry. Field order (name, thisType, arityMin,
arityMax, thisArgs) is significant: it fixes the serialized field
order.
Fields§
§name: StringThe name value.
this_type: StringThe this type value.
arity_min: usizeNon-this parameters a caller cannot
leave out: no default value AND no params modifier.
arity_max: i64Total non-this parameter count, or -1 when the trailing parameter is a
params array (unbounded above). Signed precisely so -1 can be the
sentinel written as a JSON number.
this_args: Option<Vec<String>>The this-parameter type’s TOP-LEVEL type-argument descriptors, present only when that type is generic. A position naming one of the method’s or the enclosing class’s own type parameters is recorded as “*” (wildcard).
Trait Implementations§
Source§impl Clone for ExtensionMethod
impl Clone for ExtensionMethod
Source§fn clone(&self) -> ExtensionMethod
fn clone(&self) -> ExtensionMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtensionMethod
impl Debug for ExtensionMethod
Source§impl PartialEq for ExtensionMethod
impl PartialEq for ExtensionMethod
impl StructuralPartialEq for ExtensionMethod
Auto Trait Implementations§
impl Freeze for ExtensionMethod
impl RefUnwindSafe for ExtensionMethod
impl Send for ExtensionMethod
impl Sync for ExtensionMethod
impl Unpin for ExtensionMethod
impl UnsafeUnpin for ExtensionMethod
impl UnwindSafe for ExtensionMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more