pub struct AddressableTextResultDto {
pub text: String,
}Expand description
The document’s addressable text: the exact string every document offset is an
index into — find_all/find_text match positions, replace_ranges ranges, a
block’s document_position, a cursor or selection offset from an editor widget.
Built by the same code path find_all uses to build the text it searches
(build_full_text), so the two cannot diverge. This is not the export view:
an embedded table occupies its U+FFFC anchor here (one char plus its \n
separator), exactly as the document holds it, where to_plain_text omits it.
Fields§
§text: StringTrait Implementations§
Source§impl Clone for AddressableTextResultDto
impl Clone for AddressableTextResultDto
Source§fn clone(&self) -> AddressableTextResultDto
fn clone(&self) -> AddressableTextResultDto
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 AddressableTextResultDto
impl Debug for AddressableTextResultDto
Source§impl Default for AddressableTextResultDto
impl Default for AddressableTextResultDto
Source§fn default() -> AddressableTextResultDto
fn default() -> AddressableTextResultDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AddressableTextResultDto
impl<'de> Deserialize<'de> for AddressableTextResultDto
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
Source§impl PartialEq for AddressableTextResultDto
impl PartialEq for AddressableTextResultDto
Source§impl Serialize for AddressableTextResultDto
impl Serialize for AddressableTextResultDto
impl StructuralPartialEq for AddressableTextResultDto
Auto Trait Implementations§
impl Freeze for AddressableTextResultDto
impl RefUnwindSafe for AddressableTextResultDto
impl Send for AddressableTextResultDto
impl Sync for AddressableTextResultDto
impl Unpin for AddressableTextResultDto
impl UnsafeUnpin for AddressableTextResultDto
impl UnwindSafe for AddressableTextResultDto
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