[][src]Struct include_merkle::IncludeNode

pub struct IncludeNode {
    pub working_dir: PathBuf,
    pub include_file: PathBuf,
    pub source_identity: Option<String>,
    pub patched_identity: Option<String>,
    pub flattened: String,
}

Represents a particular include file.

Fields

working_dir: PathBuf

Canonical path of working directory

include_file: PathBuf

Canonical path of include file

source_identity: Option<String>

Original identity of the source (no modifications)

patched_identity: Option<String>

Modified identity of the source (flattened or Merkle replacement)

flattened: String

Resolved file contents (flattened or patched)

Methods

impl IncludeNode
[src]

pub fn new(working_dir: &Path, include_file: &Path) -> Self
[src]

Create a new IncludeNode from a working directory and a file path.

pub fn data_as_string(&self, normalize_endings: bool) -> String
[src]

Load the contents of the IncludeNode backing file and return as a utf8 encoded string.

Trait Implementations

impl Eq for IncludeNode
[src]

impl Default for IncludeNode
[src]

impl PartialEq<IncludeNode> for IncludeNode
[src]

impl Clone for IncludeNode
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for IncludeNode
[src]

Auto Trait Implementations

impl Send for IncludeNode

impl Sync for IncludeNode

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self