pub struct Classpath { /* private fields */ }
Expand description
A utility for working with Java classpaths
Implementations§
Source§impl Classpath
impl Classpath
Sourcepub fn add_sep(&mut self)
pub fn add_sep(&mut self)
Append the classpath separator to the end of the string. This can create invalid classpaths, so don’t use it unless you know what you are doing.
Sourcepub fn add_path(&mut self, path: &Path) -> Result<()>
pub fn add_path(&mut self, path: &Path) -> Result<()>
Converts a path to a string and appends it to the classpath
Sourcepub fn add_multiple<I: AsRef<str>>(&mut self, strings: impl Iterator<Item = I>)
pub fn add_multiple<I: AsRef<str>>(&mut self, strings: impl Iterator<Item = I>)
Adds multiple path strings to the classpath
Sourcepub fn get_entries(&self) -> Vec<&str>
pub fn get_entries(&self) -> Vec<&str>
Split the classpath into a vector of strings
Trait Implementations§
impl StructuralPartialEq for Classpath
Auto Trait Implementations§
impl Freeze for Classpath
impl RefUnwindSafe for Classpath
impl Send for Classpath
impl Sync for Classpath
impl Unpin for Classpath
impl UnwindSafe for Classpath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DefaultExt for T
impl<T> DefaultExt for T
Source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Check if the value is equal to it’s default value