pub struct FunctionDef {
pub name: String,
pub return_type: Option<PtxType>,
pub params: Vec<Param>,
pub registers: Vec<RegisterDecl>,
pub body: Vec<Statement>,
}Expand description
Function definition (non-entry)
Fields§
§name: StringFunction name
return_type: Option<PtxType>Return type
params: Vec<Param>Parameters
registers: Vec<RegisterDecl>Register declarations
body: Vec<Statement>Body statements
Trait Implementations§
Source§impl Clone for FunctionDef
impl Clone for FunctionDef
Source§fn clone(&self) -> FunctionDef
fn clone(&self) -> FunctionDef
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 moreAuto Trait Implementations§
impl Freeze for FunctionDef
impl RefUnwindSafe for FunctionDef
impl Send for FunctionDef
impl Sync for FunctionDef
impl Unpin for FunctionDef
impl UnsafeUnpin for FunctionDef
impl UnwindSafe for FunctionDef
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