pub struct CallPrototypeDirective {
pub return_param: Option<ParameterDirective>,
pub params: Vec<ParameterDirective>,
pub noreturn: bool,
pub abi_preserve: Option<u32>,
pub abi_preserve_control: Option<u32>,
pub span: Span,
}Expand description
Structured representation of a .callprototype directive.
Syntax: // no input or return parameters label: .callprototype _ .noreturn {.abi_preserve N} {.abi_preserve_control N}; // input params, no return params label: .callprototype _ (param-list) .noreturn {.abi_preserve N} {.abi_preserve_control N}; // no input params, // return params label: .callprototype (ret-param) _ {.abi_preserve N} {.abi_preserve_control N}; // input, return parameters label: .callprototype (ret-param) _ (param-list) {.abi_preserve N} {.abi_preserve_control N};
Fields§
§return_param: Option<ParameterDirective>§params: Vec<ParameterDirective>§noreturn: bool§abi_preserve: Option<u32>§abi_preserve_control: Option<u32>§span: SpanImplementations§
Trait Implementations§
Source§impl Clone for CallPrototypeDirective
impl Clone for CallPrototypeDirective
Source§fn clone(&self) -> CallPrototypeDirective
fn clone(&self) -> CallPrototypeDirective
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 CallPrototypeDirective
impl Debug for CallPrototypeDirective
Source§impl PartialEq for CallPrototypeDirective
impl PartialEq for CallPrototypeDirective
Source§impl Spanned for CallPrototypeDirective
impl Spanned for CallPrototypeDirective
Source§impl TreeDisplay for CallPrototypeDirective
impl TreeDisplay for CallPrototypeDirective
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 CallPrototypeDirective
Auto Trait Implementations§
impl Freeze for CallPrototypeDirective
impl RefUnwindSafe for CallPrototypeDirective
impl Send for CallPrototypeDirective
impl Sync for CallPrototypeDirective
impl Unpin for CallPrototypeDirective
impl UnwindSafe for CallPrototypeDirective
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