Struct rquickjs_core::function::ParamRequirement
source · pub struct ParamRequirement { /* private fields */ }
Expand description
A struct encoding the requirements of a parameter set.
Implementations§
source§impl ParamRequirement
impl ParamRequirement
sourcepub const fn exhaustive() -> Self
pub const fn exhaustive() -> Self
Makes the requirements exhaustive i.e. the parameter set requires that the function is called with no arguments than parameters
sourcepub const fn combine(self, other: Self) -> ParamRequirement
pub const fn combine(self, other: Self) -> ParamRequirement
Combine to requirements into one which covers both.
sourcepub fn is_exhaustive(&self) -> bool
pub fn is_exhaustive(&self) -> bool
Returns whether this function is required to be exhaustive called
i.e. there can be no more arguments then parameters.
Auto Trait Implementations§
impl Freeze for ParamRequirement
impl RefUnwindSafe for ParamRequirement
impl Send for ParamRequirement
impl Sync for ParamRequirement
impl Unpin for ParamRequirement
impl UnwindSafe for ParamRequirement
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> 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