[−][src]Struct yang2::data::DataDiff
YANG data tree diff.
Implementations
impl<'a> DataDiff<'a>
[src]
pub fn iter(&self) -> impl Iterator<Item = (DataDiffOp, DataNodeRef<'_>)>
[src]
Returns an iterator over the data changes.
pub fn reverse(&self) -> Result<DataDiff<'_>, Error>
[src]
Reverse a diff and make the opposite changes. Meaning change create to delete, delete to create, or move from place A to B to move from B to A and so on.
Trait Implementations
impl<'a> Data for DataDiff<'a>
[src]
pub fn tree(&self) -> &DataTree<'_>
[src]
pub fn find(&self, xpath: &str) -> Result<Set<'_, DataNodeRef<'_>>, Error>
[src]
pub fn find_single(&self, xpath: &str) -> Result<DataNodeRef<'_>, Error>
[src]
pub fn print_file<F: AsRawFd>(
&self,
fd: F,
format: DataFormat,
options: DataPrinterFlags
) -> Result<(), Error>
[src]
&self,
fd: F,
format: DataFormat,
options: DataPrinterFlags
) -> Result<(), Error>
pub fn print_string(
&self,
format: DataFormat,
options: DataPrinterFlags
) -> Result<String, Error>
[src]
&self,
format: DataFormat,
options: DataPrinterFlags
) -> Result<String, Error>
impl<'a> Debug for DataDiff<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for DataDiff<'a>
[src]
impl<'a> !Send for DataDiff<'a>
[src]
impl<'a> !Sync for DataDiff<'a>
[src]
impl<'a> Unpin for DataDiff<'a>
[src]
impl<'a> UnwindSafe for DataDiff<'a>
[src]
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>,