pub struct MethodRestrictions {
pub min_arguments: i64,
pub max_arguments: Option<i64>,
pub parameters: Vec<ParameterRestriction>,
}Expand description
A method’s arity and parameter restrictions.
Fields§
§min_arguments: i64The number of arguments the method requires.
max_arguments: Option<i64>None when the method accepts a wildcard number of arguments.
parameters: Vec<ParameterRestriction>One entry per restricted parameter, in order.
Trait Implementations§
Source§impl Clone for MethodRestrictions
impl Clone for MethodRestrictions
Source§impl Debug for MethodRestrictions
impl Debug for MethodRestrictions
impl Eq for MethodRestrictions
Source§impl PartialEq for MethodRestrictions
impl PartialEq for MethodRestrictions
impl StructuralPartialEq for MethodRestrictions
Auto Trait Implementations§
impl Freeze for MethodRestrictions
impl RefUnwindSafe for MethodRestrictions
impl Send for MethodRestrictions
impl Sync for MethodRestrictions
impl Unpin for MethodRestrictions
impl UnsafeUnpin for MethodRestrictions
impl UnwindSafe for MethodRestrictions
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