[−][src]Struct mt_dom::patch::ChangeText
The patch is changing the text content of a text node
Fields
node_idx: NodeIdx
node index of the text node to be patch relative to the root node of the application
new_node_idx: NodeIdx
the new node_idx of this text
old: &'a Text
the old text is not really needed for applying the patch. but it is useful for debugging purposed, that we are changing the intended target text by visual inspection
new: &'a Text
the neew text patch
Implementations
impl<'a> ChangeText<'a>
[src]
pub fn new(
node_idx: NodeIdx,
old: &'a Text,
new_node_idx: NodeIdx,
new: &'a Text
) -> Self
[src]
node_idx: NodeIdx,
old: &'a Text,
new_node_idx: NodeIdx,
new: &'a Text
) -> Self
create a new change text patch
Trait Implementations
impl<'a> Debug for ChangeText<'a>
[src]
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> From<ChangeText<'a>> for Patch<'a, NS, TAG, ATT, VAL, EVENT, MSG>
[src]
pub fn from(ct: ChangeText<'a>) -> Self
[src]
impl<'a> PartialEq<ChangeText<'a>> for ChangeText<'a>
[src]
pub fn eq(&self, other: &ChangeText<'a>) -> bool
[src]
pub fn ne(&self, other: &ChangeText<'a>) -> bool
[src]
impl<'a> StructuralPartialEq for ChangeText<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ChangeText<'a>
impl<'a> Send for ChangeText<'a>
impl<'a> Sync for ChangeText<'a>
impl<'a> Unpin for ChangeText<'a>
impl<'a> UnwindSafe for ChangeText<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,