pub struct PathIdent { /* private fields */ }
Implementations§
Source§impl PathIdent
impl PathIdent
pub fn simple(name: String) -> Self
pub fn new(name: Vec<&str>) -> Self
pub fn continued(first: PathIdent, next: String) -> Self
pub fn empty() -> Self
pub fn concat(first: &PathIdent, second: &PathIdent) -> Self
pub fn is_prefixed_by(&self, prefix: &PathIdent) -> bool
pub fn subtract(self, second: &PathIdent) -> Result<Self, PathError>
pub fn subtract_if_possible(self, second: &PathIdent) -> Self
pub fn without_last(&self) -> Self
pub fn pop_front(&self) -> Result<PathIdent, PathError>
pub fn get_front(&self) -> Result<&String, PathError>
pub fn get_back(&self) -> Result<&String, PathError>
pub fn is_final(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn to_string(&self, separator: &str) -> String
Trait Implementations§
impl Eq for PathIdent
impl StructuralPartialEq for PathIdent
Auto Trait Implementations§
impl Freeze for PathIdent
impl RefUnwindSafe for PathIdent
impl Send for PathIdent
impl Sync for PathIdent
impl Unpin for PathIdent
impl UnwindSafe for PathIdent
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