pub struct SearchContextLine {
pub line: u32,
pub text: String,
pub matched: bool,
}Expand description
One rendered Markdown line surrounding a match.
Fields§
§line: u32One-based line number in the deterministic Markdown render.
text: StringComplete rendered line without its newline terminator.
matched: boolWhether this is one of the lines intersecting the match.
Trait Implementations§
Source§impl Clone for SearchContextLine
impl Clone for SearchContextLine
Source§fn clone(&self) -> SearchContextLine
fn clone(&self) -> SearchContextLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SearchContextLine
impl Debug for SearchContextLine
Source§impl<'de> Deserialize<'de> for SearchContextLine
impl<'de> Deserialize<'de> for SearchContextLine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SearchContextLine
Source§impl JsonSchema for SearchContextLine
impl JsonSchema for SearchContextLine
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SearchContextLine
impl PartialEq for SearchContextLine
Source§impl Serialize for SearchContextLine
impl Serialize for SearchContextLine
impl StructuralPartialEq for SearchContextLine
Auto Trait Implementations§
impl Freeze for SearchContextLine
impl RefUnwindSafe for SearchContextLine
impl Send for SearchContextLine
impl Sync for SearchContextLine
impl Unpin for SearchContextLine
impl UnsafeUnpin for SearchContextLine
impl UnwindSafe for SearchContextLine
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