pub struct ArtStyleBlock<'a> {
pub content: &'a str,
pub lang: Option<&'a str>,
pub scoped: bool,
pub loc: Option<SourceLocation>,
}Expand description
Style block in Art file.
Fields§
§content: &'a strStyle content - borrowed from source
lang: Option<&'a str>Language (css, scss, less, etc.)
scoped: boolWhether scoped
loc: Option<SourceLocation>Source location
Implementations§
Source§impl<'a> ArtStyleBlock<'a>
impl<'a> ArtStyleBlock<'a>
Sourcepub fn into_owned(self) -> ArtStyleBlockOwned
pub fn into_owned(self) -> ArtStyleBlockOwned
Convert to owned version.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ArtStyleBlock<'a>
impl<'a> RefUnwindSafe for ArtStyleBlock<'a>
impl<'a> Send for ArtStyleBlock<'a>
impl<'a> Sync for ArtStyleBlock<'a>
impl<'a> Unpin for ArtStyleBlock<'a>
impl<'a> UnsafeUnpin for ArtStyleBlock<'a>
impl<'a> UnwindSafe for ArtStyleBlock<'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