pub struct Stylesheet { /* private fields */ }Expand description
Stylesheet representation for resource discovering and condensing multiple stylesheets into one
Implementations§
Source§impl Stylesheet
impl Stylesheet
pub fn from_readable(readable: impl Read) -> Result<Stylesheet, LssgError>
pub fn resources(&self) -> Vec<String>
Sourcepub fn append(&mut self, _stylesheet: Stylesheet) -> Result<(), LssgError>
pub fn append(&mut self, _stylesheet: Stylesheet) -> Result<(), LssgError>
Append stylesheet and discover local referenced resources
Sourcepub fn update_resource(&mut self, raw_path: &str, updated_path: &str)
pub fn update_resource(&mut self, raw_path: &str, updated_path: &str)
Update a resource input path to a new one
pub fn write(&mut self, path: &Path) -> Result<(), LssgError>
Trait Implementations§
Source§impl Clone for Stylesheet
impl Clone for Stylesheet
Source§fn clone(&self) -> Stylesheet
fn clone(&self) -> Stylesheet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Stylesheet
impl Debug for Stylesheet
Auto Trait Implementations§
impl Freeze for Stylesheet
impl RefUnwindSafe for Stylesheet
impl Send for Stylesheet
impl Sync for Stylesheet
impl Unpin for Stylesheet
impl UnwindSafe for Stylesheet
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