pub(crate) struct Params {
pub(crate) num_required: usize,
pub(crate) num_optional: usize,
}
Fields§
§num_required: usize
§num_optional: usize
Implementations§
source§impl Params
impl Params
pub(crate) fn to_num_required(&self) -> String
pub(crate) fn to_num_optional(&self) -> String
sourcepub(crate) fn to_required_names(&self) -> Vec<String>
pub(crate) fn to_required_names(&self) -> Vec<String>
r0, r1, r2…
.
sourcepub(crate) fn to_required_types(&self) -> Vec<String>
pub(crate) fn to_required_types(&self) -> Vec<String>
R0, R1, R2…
.
sourcepub(crate) fn to_required_params(&self) -> Vec<String>
pub(crate) fn to_required_params(&self) -> Vec<String>
r0: IR0, r1: IR1, r2: IR2…
.
sourcepub(crate) fn to_required_clauses(&self, into: bool) -> Vec<String>
pub(crate) fn to_required_clauses(&self, into: bool) -> Vec<String>
IR0: (Into)Iterator<Item = (Idx, R0)>, IR1: (Into)Iterator<Item = (Idx, R1)>…
sourcepub(crate) fn to_optional_names(&self) -> Vec<String>
pub(crate) fn to_optional_names(&self) -> Vec<String>
o0, o1, o2…
.
sourcepub(crate) fn to_optional_types(&self) -> Vec<String>
pub(crate) fn to_optional_types(&self) -> Vec<String>
O0, O1, O2…
.
sourcepub(crate) fn to_optional_params(&self) -> Vec<String>
pub(crate) fn to_optional_params(&self) -> Vec<String>
o0: IO0, o1: IO1, o2: IO2…
.
sourcepub(crate) fn to_optional_peekable_params(&self) -> Vec<String>
pub(crate) fn to_optional_peekable_params(&self) -> Vec<String>
o0: Peekable<IO0>, o1: Peekable<IO1>, o2: Peekable<IO2>…
.
sourcepub(crate) fn to_optional_clauses(&self, into: bool) -> Vec<String>
pub(crate) fn to_optional_clauses(&self, into: bool) -> Vec<String>
IO0: (Into)Iterator<Item = (Idx, O0)>, IO1: (Into)Iterator<Item = (Idx, O1)>…
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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