pub struct SourcesList {
pub path: PathBuf,
pub lines: Vec<SourceLine>,
}
Fields§
§path: PathBuf
§lines: Vec<SourceLine>
Implementations§
Source§impl SourcesList
impl SourcesList
pub fn new<P: AsRef<Path>>(path: P) -> SourceResult<Self>
pub fn contains_entry(&self, entry: &str) -> Option<usize>
pub fn get_entries_mut<'a>( &'a mut self, entry: &'a str, ) -> impl Iterator<Item = &mut SourceEntry> + 'a
pub fn is_active(&self) -> bool
pub fn write_sync(&mut self) -> Result<()>
pub fn reload(&mut self) -> SourceResult<()>
Trait Implementations§
Source§impl Clone for SourcesList
impl Clone for SourcesList
Source§fn clone(&self) -> SourcesList
fn clone(&self) -> SourcesList
Returns a duplicate of the value. Read more
1.0.0 · 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 SourcesList
impl Debug for SourcesList
Source§impl Default for SourcesList
impl Default for SourcesList
Source§fn default() -> SourcesList
fn default() -> SourcesList
Returns the “default value” for a type. Read more
Source§impl Display for SourcesList
impl Display for SourcesList
Auto Trait Implementations§
impl Freeze for SourcesList
impl RefUnwindSafe for SourcesList
impl Send for SourcesList
impl Sync for SourcesList
impl Unpin for SourcesList
impl UnwindSafe for SourcesList
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