pub struct UriListFile { /* private fields */ }Implementations§
Source§impl UriListFile
impl UriListFile
pub fn new() -> Self
pub fn from_file(path: &str) -> Result<Self, UriListError>
pub fn parse(&mut self, content: &str) -> Result<(), UriListError>
pub fn entries(&self) -> &[UriListEntry]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn path(&self) -> Option<&str>
pub fn all_uris(&self) -> Vec<&str>
pub fn valid_entries(&self) -> Vec<&UriListEntry>
pub fn filter_by_option(&self, key: &str, value: &str) -> Vec<&UriListEntry>
Trait Implementations§
Source§impl Clone for UriListFile
impl Clone for UriListFile
Source§fn clone(&self) -> UriListFile
fn clone(&self) -> UriListFile
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 UriListFile
impl Debug for UriListFile
Auto Trait Implementations§
impl Freeze for UriListFile
impl RefUnwindSafe for UriListFile
impl Send for UriListFile
impl Sync for UriListFile
impl Unpin for UriListFile
impl UnsafeUnpin for UriListFile
impl UnwindSafe for UriListFile
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