pub fn write_root(
        &self,
        items: &[Item],
        globals: ScopeRef,
        file_context: &impl FileContext,
    ) -> Result<Vec<u8>, Error> {
        let mut head = CssHead::new(*self);
        let mut body = CssBuf::new(*self);
        handle_body(
            items,
            &mut head,
            None,
            &mut body,
            globals,
            file_context,
        )?;
        Ok(head.combine_final(body))
    }
/// Write a slice of sass items in this format.
/// The `file_context` is needed if there are `@import` statements
/// in the sass file.
Write a slice of sass items in this format.
The `file_context` is needed if there are `@import` statements
in the sass file.
Write a slice of sass items in this format . The ` file_context ` is needed if there are ` @import ` statements in the sass file .
pub fn write_root(
        &self,
        items: &[Item],
        globals: ScopeRef,
        file_context: &impl FileContext,
    ) -> Result<Vec<u8>, Error> {
        let mut head = CssHead::new(*self);
        let mut body = CssBuf::new(*self);
        handle_body(
            items,
            &mut head,
            None,
            &mut body,
            globals,
            file_context,
        )?;
        Ok(head.combine_final(body))
    }
pub fn write_root ( & self , items : & [ Item ] , globals : ScopeRef , file_context : & impl FileContext , ) -> Result < Vec < u8 > , Error > { let mut head = CssHead :: new ( * self ) ; let mut body = CssBuf :: new ( * self ) ; handle_body ( items , & mut head , None , & mut body , globals , file_context , ) ? ; Ok ( head . combine_final ( body ) ) }
Write a slice of sass items in this format.
Write a slice of sass items in this format .
&self
items
&[Item]
globals
ScopeRef
file_context
&impl FileContext
&self
items
&[Item]
globals
ScopeRef
file_context
&impl FileContext