pub struct AssetPath(/* private fields */);Implementations§
Source§impl AssetPath
impl AssetPath
pub fn new(s: &str) -> Self
pub fn root_ref() -> &'static Self
pub fn new_root(name: &str) -> Self
pub fn join(&self, rhs: &str) -> AssetPath
pub fn parent_path_and_name(&self) -> Option<(Self, String)>
pub fn is_root_path(&self) -> bool
pub fn split_components(&self) -> Vec<&str>
pub fn as_str(&self) -> &str
pub fn starts_with(&self, other: &AssetPath) -> bool
Trait Implementations§
impl Eq for AssetPath
impl StructuralPartialEq for AssetPath
Auto Trait Implementations§
impl Freeze for AssetPath
impl RefUnwindSafe for AssetPath
impl Send for AssetPath
impl Sync for AssetPath
impl Unpin for AssetPath
impl UnwindSafe for AssetPath
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