Struct gtk4::CssLocation [−][src]
#[repr(C)]pub struct CssLocation(_);
Expand description
Represents a location in a file or other source of data parsed by the CSS engine.
The bytes
and line_bytes
offsets are meant to be used to
programmatically match data. The lines
and line_chars
offsets
can be used for printing the location in a file.
Note that the lines
parameter starts from 0 and is increased
whenever a CSS line break is encountered. (CSS defines the C character
sequences “\r\n”, “\r”, “\n” and “\f” as newlines.)
If your document uses different rules for line breaking, you might want
run into problems here.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CssLocation
impl Send for CssLocation
impl Sync for CssLocation
impl Unpin for CssLocation
impl UnwindSafe for CssLocation
Blanket Implementations
Mutably borrows from an owned value. Read more