#[repr(C)]pub struct Content {
pub inner: AzString,
}Expand description
CSS content property value, stored as a raw string.
Intentionally simplified: stores the unparsed CSS value rather than
a structured ContentPart enum. Complex values like counter(section) ". "
are preserved verbatim but not individually evaluated.
Note: Currently parsed and stored but not yet consumed by the layout
engine (e.g., for ::before/::after pseudo-element generated content).
Fields§
§inner: AzStringTrait Implementations§
Source§impl FormatAsRustCode for Content
impl FormatAsRustCode for Content
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<Content> for CssProperty
impl From<Content> for CssProperty
Source§impl Ord for Content
impl Ord for Content
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Content
impl PartialOrd for Content
Source§impl PrintAsCssValue for Content
impl PrintAsCssValue for Content
fn print_as_css_value(&self) -> String
impl Eq for Content
impl StructuralPartialEq for Content
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnsafeUnpin for Content
impl UnwindSafe for Content
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