pub struct TxDocument { /* private fields */ }Expand description
Opaque wrapper around a Document for FFI use.
This struct holds the actual document plus cached CString values so that
const char* pointers returned across the FFI boundary remain valid until
the document is mutated or freed.
Implementations§
Source§impl TxDocument
impl TxDocument
Sourcepub fn invalidate_caches(&mut self)
pub fn invalidate_caches(&mut self)
Invalidates all cached strings. Called before any mutating operation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TxDocument
impl !UnwindSafe for TxDocument
impl Freeze for TxDocument
impl Send for TxDocument
impl Sync for TxDocument
impl Unpin for TxDocument
impl UnsafeUnpin for TxDocument
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