pub struct TextNode { /* private fields */ }
Expand description
A text node
Implementations§
source§impl TextNode
impl TextNode
sourcepub fn create<B: Backend>(
owner: &mut ForestNodeMut<'_, B::GeneralElement>,
content: impl ToLocaleStr
) -> Result<(Self, ForestNodeRc<B::GeneralElement>), Error>where
Self: Sized,
pub fn create<B: Backend>( owner: &mut ForestNodeMut<'_, B::GeneralElement>, content: impl ToLocaleStr ) -> Result<(Self, ForestNodeRc<B::GeneralElement>), Error>where Self: Sized,
Create a text node.
sourcepub fn backend_element_rc<'b, B: Backend>(
&'b mut self,
owner: &'b mut ForestNodeMut<'_, B::GeneralElement>
) -> Result<ForestNodeRc<B::GeneralElement>, Error>
pub fn backend_element_rc<'b, B: Backend>( &'b mut self, owner: &'b mut ForestNodeMut<'_, B::GeneralElement> ) -> Result<ForestNodeRc<B::GeneralElement>, Error>
Get the backend element.
sourcepub fn set_text<B: Backend>(
&mut self,
owner: &mut ForestNodeMut<'_, B::GeneralElement>,
content: impl ToLocaleStr
) -> Result<(), Error>
pub fn set_text<B: Backend>( &mut self, owner: &mut ForestNodeMut<'_, B::GeneralElement>, content: impl ToLocaleStr ) -> Result<(), Error>
Set the text content.
Auto Trait Implementations§
impl RefUnwindSafe for TextNode
impl !Send for TextNode
impl !Sync for TextNode
impl Unpin for TextNode
impl UnwindSafe for TextNode
Blanket Implementations§
source§impl<S, T> PropAsRef<S> for Twhere
S: PartialEq<S> + ToOwned<Owned = T> + ?Sized,
T: Borrow<S>,
impl<S, T> PropAsRef<S> for Twhere S: PartialEq<S> + ToOwned<Owned = T> + ?Sized, T: Borrow<S>,
source§fn property_as_ref(&self) -> &S
fn property_as_ref(&self) -> &S
Borrow
&Self
as &S
.source§fn property_to_owned(s: &S) -> T
fn property_to_owned(s: &S) -> T
Clone
&S
as a new Self
.