pub enum Parameter {
Instance {
param: InstanceParameter,
tid: TypeId,
nullable_override: Option<bool>,
name_override: Option<String>,
c_type_override: Option<String>,
},
Return {
param: ReturnValue,
tid: TypeId,
nullable_override: Option<bool>,
name_override: Option<String>,
c_type_override: Option<String>,
array_length_offset: u32,
},
Default {
param: Parameter,
tid: TypeId,
nullable_override: Option<bool>,
name_override: Option<String>,
c_type_override: Option<String>,
array_length_offset: u32,
closure_override: Option<usize>,
},
Error(TypeId),
VarArgs(TypeId),
None(TypeId),
}Variants§
Instance
Fields
§
param: InstanceParameterReturn
Fields
§
param: ReturnValueDefault
Fields
§
param: ParameterError(TypeId)
VarArgs(TypeId)
None(TypeId)
Implementations§
Source§impl Parameter
impl Parameter
pub fn set_nullable(&mut self, is_nullable: bool)
pub fn set_c_type(&mut self, c_type: &str)
pub fn set_name(&mut self, name: &str)
pub fn destroy(&self) -> Option<usize>
pub fn closure(&self) -> Option<usize>
pub fn c_type(&self) -> &str
pub fn scope(&self) -> Option<FunctionScope>
pub fn array_length(&self) -> Option<u32>
pub fn doc(&self) -> Option<&str>
pub fn none(tid: TypeId) -> Self
pub fn error(tid: TypeId) -> Self
pub fn is_instance(&self) -> bool
pub fn is_return(&self) -> bool
pub fn is_error(&self) -> bool
pub fn is_varargs(&self) -> bool
pub fn name(&self) -> &str
pub fn is_caller_allocates(&self) -> bool
pub fn typ(&self) -> TypeId
pub fn set_tid(&mut self, new_tid: TypeId)
pub fn is_nullable(&self) -> bool
pub fn direction(&self) -> ParameterDirection
pub fn transfer_ownership(&self) -> TransferOwnership
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnsafeUnpin for Parameter
impl UnwindSafe for Parameter
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