pub struct VDomGuard { /* private fields */ }Expand description
A RAII guarded version of VDom
The input string is freed once this struct goes out of scope.
The only way to construct this is by calling parse_owned().
Implementations§
Source§impl VDomGuard
impl VDomGuard
Sourcepub fn get_ref<'a>(&'a self) -> &'a VDom<'a>
pub fn get_ref<'a>(&'a self) -> &'a VDom<'a>
Returns a reference to the inner DOM.
The lifetime of the returned VDom is bound to self so that elements cannot outlive this VDomGuard struct.
Sourcepub fn get_mut_ref<'a, 'b: 'a>(&'b mut self) -> &'b VDom<'a>
pub fn get_mut_ref<'a, 'b: 'a>(&'b mut self) -> &'b VDom<'a>
Returns a mutable reference to the inner DOM.
The lifetime of the returned VDom is bound to self so that elements cannot outlive this VDomGuard struct.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VDomGuard
impl RefUnwindSafe for VDomGuard
impl Unpin for VDomGuard
impl UnwindSafe for VDomGuard
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