pub struct ContextFile {
pub dir: PathBuf,
pub source_name: &'static str,
pub body: String,
pub is_global: bool,
}Expand description
One context file loaded from disk.
Fields§
§dir: PathBuf§source_name: &'static str§body: String§is_global: boolTrait Implementations§
Source§impl Clone for ContextFile
impl Clone for ContextFile
Source§fn clone(&self) -> ContextFile
fn clone(&self) -> ContextFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextFile
impl Debug for ContextFile
Source§impl PartialEq for ContextFile
impl PartialEq for ContextFile
Source§fn eq(&self, other: &ContextFile) -> bool
fn eq(&self, other: &ContextFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContextFile
Auto Trait Implementations§
impl Freeze for ContextFile
impl RefUnwindSafe for ContextFile
impl Send for ContextFile
impl Sync for ContextFile
impl Unpin for ContextFile
impl UnsafeUnpin for ContextFile
impl UnwindSafe for ContextFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more