pub struct StyleSheet {
pub entries: Vec<Entry>,
}
Expand description
A StyleSheet with a collection of rules
Fields§
§entries: Vec<Entry>
Implementations§
Source§impl StyleSheet
impl StyleSheet
pub fn to_string(&self, settings: Option<ToStringSettings>) -> String
Sourcepub fn to_string_with_source_map(
&self,
settings: Option<ToStringSettings>,
) -> (String, String)
pub fn to_string_with_source_map( &self, settings: Option<ToStringSettings>, ) -> (String, String)
TODO better return type
pub fn length(&self, settings: Option<ToStringSettings>) -> usize
pub fn from_path(path: impl AsRef<Path>) -> Result<Self, ParseError>
pub fn from_string( source: String, source_id: SourceId, ) -> Result<Self, ParseError>
Trait Implementations§
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