[−][src]Struct nix_query_tree_viewer::nix_query_tree::NixQueryTree
A Tree representing the result from nix store --query --tree.
use indoc::indoc; use nix_query_tree_viewer::nix_query_tree::NixQueryTree; use std::str::FromStr; let raw_tree = indoc!( "/nix/store/qy93dp4a3rqyn2mz63fbxjg228hffwyw-hello-2.10 +---/nix/store/pnd2kl27sag76h23wa5kl95a76n3k9i3-glibc-2.27 | +---/nix/store/pnd2kl27sag76h23wa5kl95a76n3k9i3-glibc-2.27 [...] +---/nix/store/qy93dp4a3rqyn2mz63fbxjg228hffwyw-hello-2.10 [...] " ); let nix_query_tree = NixQueryTree::from_str(raw_tree); assert!(nix_query_tree.is_ok());
Methods
impl NixQueryTree[src]
pub fn path_map(&self) -> NixQueryPathMap[src]
pub fn lookup(&self, path: Path) -> Option<&NixQueryEntry>[src]
Trait Implementations
impl Clone for NixQueryTree[src]
fn clone(&self) -> NixQueryTree[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for NixQueryTree[src]
impl Eq for NixQueryTree[src]
impl FromStr for NixQueryTree[src]
type Err = Err<(String, ErrorKind)>
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
impl PartialEq<NixQueryTree> for NixQueryTree[src]
fn eq(&self, other: &NixQueryTree) -> bool[src]
fn ne(&self, other: &NixQueryTree) -> bool[src]
impl StructuralEq for NixQueryTree[src]
impl StructuralPartialEq for NixQueryTree[src]
Auto Trait Implementations
impl RefUnwindSafe for NixQueryTree
impl Send for NixQueryTree
impl Sync for NixQueryTree
impl Unpin for NixQueryTree
impl UnwindSafe for NixQueryTree
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,
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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.
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>,