pub struct CallableTypeParameter<'input> {
pub parameter_type: Option<Type<'input>>,
pub equals: Option<Span>,
pub ellipsis: Option<Span>,
pub variable: Option<VariableType<'input>>,
pub comma: Option<Span>,
}Fields§
§parameter_type: Option<Type<'input>>§equals: Option<Span>§ellipsis: Option<Span>§variable: Option<VariableType<'input>>§comma: Option<Span>Implementations§
Source§impl CallableTypeParameter<'_>
impl CallableTypeParameter<'_>
pub const fn is_variadic(&self) -> bool
pub const fn is_optional(&self) -> bool
Trait Implementations§
Source§impl<'input> Clone for CallableTypeParameter<'input>
impl<'input> Clone for CallableTypeParameter<'input>
Source§fn clone(&self) -> CallableTypeParameter<'input>
fn clone(&self) -> CallableTypeParameter<'input>
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<'input> Debug for CallableTypeParameter<'input>
impl<'input> Debug for CallableTypeParameter<'input>
Source§impl Display for CallableTypeParameter<'_>
impl Display for CallableTypeParameter<'_>
Source§impl HasSpan for CallableTypeParameter<'_>
impl HasSpan for CallableTypeParameter<'_>
Source§impl<'input> Hash for CallableTypeParameter<'input>
impl<'input> Hash for CallableTypeParameter<'input>
Source§impl<'input> Ord for CallableTypeParameter<'input>
impl<'input> Ord for CallableTypeParameter<'input>
Source§fn cmp(&self, other: &CallableTypeParameter<'input>) -> Ordering
fn cmp(&self, other: &CallableTypeParameter<'input>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'input> PartialEq for CallableTypeParameter<'input>
impl<'input> PartialEq for CallableTypeParameter<'input>
Source§fn eq(&self, other: &CallableTypeParameter<'input>) -> bool
fn eq(&self, other: &CallableTypeParameter<'input>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'input> PartialOrd for CallableTypeParameter<'input>
impl<'input> PartialOrd for CallableTypeParameter<'input>
Source§impl<'input> Serialize for CallableTypeParameter<'input>
impl<'input> Serialize for CallableTypeParameter<'input>
impl<'input> Eq for CallableTypeParameter<'input>
impl<'input> StructuralPartialEq for CallableTypeParameter<'input>
Auto Trait Implementations§
impl<'input> Freeze for CallableTypeParameter<'input>
impl<'input> RefUnwindSafe for CallableTypeParameter<'input>
impl<'input> Send for CallableTypeParameter<'input>
impl<'input> Sync for CallableTypeParameter<'input>
impl<'input> Unpin for CallableTypeParameter<'input>
impl<'input> UnwindSafe for CallableTypeParameter<'input>
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> HasPosition for Twhere
T: HasSpan,
impl<T> HasPosition for Twhere
T: HasSpan,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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