pub enum AnyParameter<'a> {
Instance(&'a InstanceParameter),
Regular(&'a Parameter),
}Expand description
Represents either an instance parameter or a regular parameter
Variants§
Instance(&'a InstanceParameter)
Regular(&'a Parameter)
Implementations§
Source§impl<'a> AnyParameter<'a>
impl<'a> AnyParameter<'a>
pub fn name(&self) -> &str
pub fn is_instance(&self) -> bool
pub fn is_regular(&self) -> bool
pub fn as_instance(&self) -> &'a InstanceParameter
pub fn as_regular(&self) -> &'a Parameter
pub fn is_nullable(&self) -> Option<bool>
pub fn is_allow_none(&self) -> Option<bool>
pub fn direction(&self) -> Option<Direction>
pub fn is_caller_allocates(&self) -> Option<bool>
pub fn transfer_ownership(&self) -> Option<TransferOwnership>
Trait Implementations§
Source§impl<'a> Clone for AnyParameter<'a>
impl<'a> Clone for AnyParameter<'a>
Source§fn clone(&self) -> AnyParameter<'a>
fn clone(&self) -> AnyParameter<'a>
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<'a> Debug for AnyParameter<'a>
impl<'a> Debug for AnyParameter<'a>
Source§impl<'a> PartialEq for AnyParameter<'a>
impl<'a> PartialEq for AnyParameter<'a>
impl<'a> Copy for AnyParameter<'a>
impl<'a> Eq for AnyParameter<'a>
impl<'a> StructuralPartialEq for AnyParameter<'a>
Auto Trait Implementations§
impl<'a> Freeze for AnyParameter<'a>
impl<'a> RefUnwindSafe for AnyParameter<'a>
impl<'a> Send for AnyParameter<'a>
impl<'a> Sync for AnyParameter<'a>
impl<'a> Unpin for AnyParameter<'a>
impl<'a> UnwindSafe for AnyParameter<'a>
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