pub struct CallableParameter {
pub kind: TypeKind,
pub optional: bool,
pub variadic: bool,
}Expand description
Represents a parameter in a callable type, including its type and attributes.
Fields§
§kind: TypeKindThe type of the parameter.
optional: boolIndicates whether the parameter is optional.
variadic: boolIndicates whether the parameter is variadic (i.e., accepts multiple values).
Trait Implementations§
Source§impl Clone for CallableParameter
impl Clone for CallableParameter
Source§fn clone(&self) -> CallableParameter
fn clone(&self) -> CallableParameter
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 Debug for CallableParameter
impl Debug for CallableParameter
Source§impl<'de> Deserialize<'de> for CallableParameter
impl<'de> Deserialize<'de> for CallableParameter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CallableParameter
impl Hash for CallableParameter
Source§impl Ord for CallableParameter
impl Ord for CallableParameter
Source§fn cmp(&self, other: &CallableParameter) -> Ordering
fn cmp(&self, other: &CallableParameter) -> 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 PartialEq for CallableParameter
impl PartialEq for CallableParameter
Source§impl PartialOrd for CallableParameter
impl PartialOrd for CallableParameter
Source§impl Serialize for CallableParameter
impl Serialize for CallableParameter
impl Eq for CallableParameter
impl StructuralPartialEq for CallableParameter
Auto Trait Implementations§
impl Freeze for CallableParameter
impl RefUnwindSafe for CallableParameter
impl Send for CallableParameter
impl Sync for CallableParameter
impl Unpin for CallableParameter
impl UnwindSafe for CallableParameter
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