pub enum InputParams {
None,
One(Ident, Box<Type>),
Many(Vec<(Ident, Type)>),
}Variants§
Implementations§
Source§impl InputParams
impl InputParams
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> InputParamsIter<'_> ⓘ
pub fn input_type( &self, fn_name: &FnName, class: Option<&CapabilityIdent>, ) -> TokenStream
pub fn input_serialization( &self, fn_name: &FnName, class: Option<&CapabilityIdent>, ) -> TokenStream
pub fn input_args(&self) -> Vec<TokenStream>
pub fn input_struct( &self, fn_name: &FnName, class: Option<&CapabilityIdent>, ) -> TokenStream
Trait Implementations§
Source§impl Clone for InputParams
impl Clone for InputParams
Source§fn clone(&self) -> InputParams
fn clone(&self) -> InputParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputParams
impl Debug for InputParams
impl Eq for InputParams
Source§impl PartialEq for InputParams
impl PartialEq for InputParams
Source§fn eq(&self, other: &InputParams) -> bool
fn eq(&self, other: &InputParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputParams
Auto Trait Implementations§
impl !Send for InputParams
impl !Sync for InputParams
impl Freeze for InputParams
impl RefUnwindSafe for InputParams
impl Unpin for InputParams
impl UnsafeUnpin for InputParams
impl UnwindSafe for InputParams
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