#[repr(C)]pub struct CallableTypeParameter<'input> {
pub parameter_type: Box<Type<'input>>,
pub equals: Option<Span>,
pub ellipsis: Option<Span>,
pub comma: Option<Span>,
}Fields§
§parameter_type: Box<Type<'input>>§equals: Option<Span>§ellipsis: Option<Span>§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