pub struct ScriptBlock {
pub span: (u32, u32),
pub kind: SourceKind,
pub role: ScriptRole,
}Expand description
One script block of a component file.
Fields§
§span: (u32, u32)The byte span of the block body in the component file.
kind: SourceKindThe language of the block body.
role: ScriptRoleThe role of the block.
Trait Implementations§
Source§impl Clone for ScriptBlock
impl Clone for ScriptBlock
impl Copy for ScriptBlock
Source§impl Debug for ScriptBlock
impl Debug for ScriptBlock
impl Eq for ScriptBlock
Source§impl PartialEq for ScriptBlock
impl PartialEq for ScriptBlock
impl StructuralPartialEq for ScriptBlock
Auto Trait Implementations§
impl Freeze for ScriptBlock
impl RefUnwindSafe for ScriptBlock
impl Send for ScriptBlock
impl Sync for ScriptBlock
impl Unpin for ScriptBlock
impl UnsafeUnpin for ScriptBlock
impl UnwindSafe for ScriptBlock
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