pub struct WorkshopSubroutine {
pub name: String,
pub index: u32,
pub span: Option<Span>,
pub name_span: Option<Span>,
}Expand description
A workshop subroutine with its assigned index.
Fields§
§name: String§index: u32§span: Option<Span>§name_span: Option<Span>The exact span of the declared identifier token.
Trait Implementations§
Source§impl Clone for WorkshopSubroutine
impl Clone for WorkshopSubroutine
Source§fn clone(&self) -> WorkshopSubroutine
fn clone(&self) -> WorkshopSubroutine
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 moreAuto Trait Implementations§
impl Freeze for WorkshopSubroutine
impl RefUnwindSafe for WorkshopSubroutine
impl Send for WorkshopSubroutine
impl Sync for WorkshopSubroutine
impl Unpin for WorkshopSubroutine
impl UnsafeUnpin for WorkshopSubroutine
impl UnwindSafe for WorkshopSubroutine
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