pub struct TextResolver {
pub format: String,
}Expand description
Text-based resolver using <aap:target id="..."> markers.
Fields§
§format: StringTrait Implementations§
Source§impl Resolve for TextResolver
impl Resolve for TextResolver
type Content = String
fn find_by_id(&self, content: &String, id: &str) -> Result<(usize, usize)>
fn find_by_id_inclusive( &self, content: &String, id: &str, ) -> Result<(usize, usize)>
fn find_by_pointer( &self, content: &String, pointer: &str, ) -> Result<(usize, usize)>
fn replace( &self, content: &mut String, start: usize, end: usize, replacement: &str, )
fn insert(&self, content: &mut String, pos: usize, text: &str)
fn delete(&self, content: &mut String, start: usize, end: usize)
fn to_string(&self, content: &String) -> String
fn from_string(&self, s: &str) -> String
Auto Trait Implementations§
impl Freeze for TextResolver
impl RefUnwindSafe for TextResolver
impl Send for TextResolver
impl Sync for TextResolver
impl Unpin for TextResolver
impl UnsafeUnpin for TextResolver
impl UnwindSafe for TextResolver
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