pub struct Assembly {
pub text: String,
pub line_spans: Vec<Option<(usize, usize)>>,
}Expand description
Finished assembly module plus a per-line source span map for snapshots and the playground (design §6.2, §12).
Fields§
§text: String§line_spans: Vec<Option<(usize, usize)>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Assembly
impl RefUnwindSafe for Assembly
impl Send for Assembly
impl Sync for Assembly
impl Unpin for Assembly
impl UnsafeUnpin for Assembly
impl UnwindSafe for Assembly
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