Struct vertigo::DomComment
source · pub struct DomComment {
pub id_dom: DomId,
/* private fields */
}
Expand description
A Real DOM representative - comment kind
Fields§
§id_dom: DomId
Implementations§
source§impl DomComment
impl DomComment
pub fn new(text: impl Into<String>) -> DomComment
pub fn new_marker<F: Fn(DomId, DomId) -> Option<DropResource> + 'static>( comment_value: &'static str, mount: F ) -> DomComment
pub fn id_dom(&self) -> DomId
pub fn add_subscription(&self, client: DropResource)
pub fn dom_fragment(list: Vec<DomNode>) -> DomComment
Trait Implementations§
source§impl Drop for DomComment
impl Drop for DomComment
source§impl From<DomComment> for DomNode
impl From<DomComment> for DomNode
source§fn from(node: DomComment) -> Self
fn from(node: DomComment) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DomComment
impl !Send for DomComment
impl !Sync for DomComment
impl Unpin for DomComment
impl !UnwindSafe for DomComment
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