[−][src]Enum syntect::html::ClassStyle
Variants (Non-exhaustive)
The classes are the atoms of the scope separated by spaces
(e.g source.php
becomes source php
).
This isn't that fast since it has to use the scope repository
to look up scope names.
Like Spaced
, but the given prefix will be prepended to all
classes. This is useful to prevent class name collisions, and
can ensure that the theme's CSS applies precisely to syntect's
output.
The prefix must be a valid CSS class name. To help ennforce this invariant and prevent accidental foot-shooting, it must be statically known. (If this requirement is onerous, please file an issue; the HTML generator can also be forked separately from the rest of syntect, as it only uses the public API.)
Fields of SpacedPrefixed
prefix: &'static str
Trait Implementations
impl Clone for ClassStyle
[src]
pub fn clone(&self) -> ClassStyle
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ClassStyle
[src]
impl Debug for ClassStyle
[src]
impl Eq for ClassStyle
[src]
impl PartialEq<ClassStyle> for ClassStyle
[src]
pub fn eq(&self, other: &ClassStyle) -> bool
[src]
pub fn ne(&self, other: &ClassStyle) -> bool
[src]
impl StructuralEq for ClassStyle
[src]
impl StructuralPartialEq for ClassStyle
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClassStyle
impl Send for ClassStyle
impl Sync for ClassStyle
impl Unpin for ClassStyle
impl UnwindSafe for ClassStyle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,