pub struct StyleComponents(pub HashSet<StyleComponent>);
Tuple Fields§
§0: HashSet<StyleComponent>
Implementations§
Source§impl StyleComponents
impl StyleComponents
pub fn new(components: &[StyleComponent]) -> StyleComponents
pub fn grid(&self) -> bool
pub fn rule(&self) -> bool
pub fn header(&self) -> bool
pub fn header_filename(&self) -> bool
pub fn header_filesize(&self) -> bool
pub fn numbers(&self) -> bool
pub fn snip(&self) -> bool
pub fn plain(&self) -> bool
Trait Implementations§
Source§impl Clone for StyleComponents
impl Clone for StyleComponents
Source§fn clone(&self) -> StyleComponents
fn clone(&self) -> StyleComponents
Returns a copy 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 StyleComponents
impl Debug for StyleComponents
Source§impl Default for StyleComponents
impl Default for StyleComponents
Source§fn default() -> StyleComponents
fn default() -> StyleComponents
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StyleComponents
impl RefUnwindSafe for StyleComponents
impl Send for StyleComponents
impl Sync for StyleComponents
impl Unpin for StyleComponents
impl UnwindSafe for StyleComponents
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