[−]Struct sauron::prelude::mt_dom::patch::ChangeText
The patch is changing the text content of a text node
Fields
node_idx: usize
node index of the text node to be patch relative to the root node of the application
new_node_idx: usize
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>
pub fn new(
node_idx: usize,
old: &'a Text,
new_node_idx: usize,
new: &'a Text
) -> ChangeText<'a>
node_idx: usize,
old: &'a Text,
new_node_idx: usize,
new: &'a Text
) -> ChangeText<'a>
create a new change text patch
Trait Implementations
impl<'a> Debug for ChangeText<'a>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> From<ChangeText<'a>> for Patch<'a, NS, TAG, ATT, VAL, EVENT, MSG>
pub fn from(ct: ChangeText<'a>) -> Patch<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a> PartialEq<ChangeText<'a>> for ChangeText<'a>
pub fn eq(&self, other: &ChangeText<'a>) -> bool
pub fn ne(&self, other: &ChangeText<'a>) -> bool
impl<'a> StructuralPartialEq for ChangeText<'a>
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,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
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>,