pub struct ImporterResult {
pub contents: String,
pub syntax: Syntax,
pub source_map_url: Option<String>,
}Expand description
The source an Importer::load produced for a CanonicalUrl — dart-sass’s
ImporterResult.
Fields§
§contents: StringThe stylesheet source text.
syntax: SyntaxThe syntax contents should be parsed with (SCSS / indented / plain CSS).
source_map_url: Option<String>The URL to record for this source in generated source maps (dart-sass
ImporterResult.sourceMapUrl); None falls back to the canonical URL.
Trait Implementations§
Source§impl Clone for ImporterResult
impl Clone for ImporterResult
Source§fn clone(&self) -> ImporterResult
fn clone(&self) -> ImporterResult
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 ImporterResult
impl RefUnwindSafe for ImporterResult
impl Send for ImporterResult
impl Sync for ImporterResult
impl Unpin for ImporterResult
impl UnsafeUnpin for ImporterResult
impl UnwindSafe for ImporterResult
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