[−][src]Struct include_merkle::IncludeNode
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]
impl IncludeNode
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 PartialEq<IncludeNode> for IncludeNode
[src]
impl PartialEq<IncludeNode> for IncludeNode
fn eq(&self, other: &IncludeNode) -> bool | [src] |
fn ne(&self, other: &IncludeNode) -> bool | [src] |
impl Eq for IncludeNode
[src]
impl Eq for IncludeNode
impl Clone for IncludeNode
[src]
impl Clone for IncludeNode
fn clone(&self) -> IncludeNode | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Default for IncludeNode
[src]
impl Default for IncludeNode
fn default() -> IncludeNode | [src] |
impl Debug for IncludeNode
[src]
impl Debug for IncludeNode
Auto Trait Implementations
impl Send for IncludeNode
impl Send for IncludeNode
impl Sync for IncludeNode
impl Sync for IncludeNode
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool | [src] |
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self