Struct muse_lang::compiler::syntax::SourceCode
source · pub struct SourceCode<'a> {
pub code: &'a str,
pub id: SourceId,
}Expand description
An identified chunk of Muse source code.
Fields§
§code: &'a strThe Muse source code.
id: SourceIdThe ID of this source.
Implementations§
Trait Implementations§
source§impl<'a> From<&'a String> for SourceCode<'a>
impl<'a> From<&'a String> for SourceCode<'a>
Auto Trait Implementations§
impl<'a> Freeze for SourceCode<'a>
impl<'a> RefUnwindSafe for SourceCode<'a>
impl<'a> Send for SourceCode<'a>
impl<'a> Sync for SourceCode<'a>
impl<'a> Unpin for SourceCode<'a>
impl<'a> UnwindSafe for SourceCode<'a>
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