pub struct DirectiveMainParam {
pub name: String,
pub name_range: TokenRange,
pub type_node: TypeNode,
}Expand description
One <type> <ident> parameter of a #main(...) signature.
Fields§
§name: String§name_range: TokenRange§type_node: TypeNodeTrait Implementations§
Source§impl Clone for DirectiveMainParam
impl Clone for DirectiveMainParam
Source§fn clone(&self) -> DirectiveMainParam
fn clone(&self) -> DirectiveMainParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DirectiveMainParam
impl Debug for DirectiveMainParam
Source§impl PartialEq for DirectiveMainParam
impl PartialEq for DirectiveMainParam
Source§fn eq(&self, other: &DirectiveMainParam) -> bool
fn eq(&self, other: &DirectiveMainParam) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DirectiveMainParam
Auto Trait Implementations§
impl Freeze for DirectiveMainParam
impl RefUnwindSafe for DirectiveMainParam
impl Send for DirectiveMainParam
impl Sync for DirectiveMainParam
impl Unpin for DirectiveMainParam
impl UnsafeUnpin for DirectiveMainParam
impl UnwindSafe for DirectiveMainParam
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