pub struct FunctionBody {
pub statements: Vec<FunctionStatement>,
pub span: Span,
}Expand description
Statements contained within a PTX function body.
Fields§
§statements: Vec<FunctionStatement>§span: SpanImplementations§
Trait Implementations§
Source§impl Clone for FunctionBody
impl Clone for FunctionBody
Source§fn clone(&self) -> FunctionBody
fn clone(&self) -> FunctionBody
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 FunctionBody
impl Debug for FunctionBody
Source§impl Default for FunctionBody
impl Default for FunctionBody
Source§fn default() -> FunctionBody
fn default() -> FunctionBody
Returns the “default value” for a type. Read more
Source§impl PartialEq for FunctionBody
impl PartialEq for FunctionBody
Source§impl PtxParser for FunctionBody
impl PtxParser for FunctionBody
Source§fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
Returns a parser function that can parse an instance of
Self.Source§impl PtxUnparser for FunctionBody
impl PtxUnparser for FunctionBody
Source§impl Spanned for FunctionBody
impl Spanned for FunctionBody
Source§impl TreeDisplay for FunctionBody
impl TreeDisplay for FunctionBody
Source§fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> Result
fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> Result
Display this node in tree format. Read more
impl StructuralPartialEq for FunctionBody
Auto Trait Implementations§
impl Freeze for FunctionBody
impl RefUnwindSafe for FunctionBody
impl Send for FunctionBody
impl Sync for FunctionBody
impl Unpin for FunctionBody
impl UnwindSafe for FunctionBody
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