Struct btlib::RelBlockPath
source · pub struct RelBlockPath<'a>(_);
Expand description
Represents a relative block path.
Implementations§
source§impl<'a> RelBlockPath<'a>
impl<'a> RelBlockPath<'a>
sourcepub fn new(rel_path: &'a str) -> StdResult<Self, BlockPathError>
pub fn new(rel_path: &'a str) -> StdResult<Self, BlockPathError>
Creates a new RelBlockPath containing the given string.
sourcepub fn components(&self) -> impl DoubleEndedIterator<Item = &str>
pub fn components(&self) -> impl DoubleEndedIterator<Item = &str>
Returns an iterator over the components of this relative path.
Trait Implementations§
source§impl<'a> Clone for RelBlockPath<'a>
impl<'a> Clone for RelBlockPath<'a>
source§fn clone(&self) -> RelBlockPath<'a>
fn clone(&self) -> RelBlockPath<'a>
Returns a copy 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<'a> Debug for RelBlockPath<'a>
impl<'a> Debug for RelBlockPath<'a>
source§impl<'a> Default for RelBlockPath<'a>
impl<'a> Default for RelBlockPath<'a>
source§fn default() -> RelBlockPath<'a>
fn default() -> RelBlockPath<'a>
Returns the “default value” for a type. Read more
source§impl<'de: 'a, 'a> Deserialize<'de> for RelBlockPath<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RelBlockPath<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> Display for RelBlockPath<'a>
impl<'a> Display for RelBlockPath<'a>
source§impl<'a> Hash for RelBlockPath<'a>
impl<'a> Hash for RelBlockPath<'a>
source§impl<'a> PartialEq<RelBlockPath<'a>> for RelBlockPath<'a>
impl<'a> PartialEq<RelBlockPath<'a>> for RelBlockPath<'a>
source§fn eq(&self, other: &RelBlockPath<'a>) -> bool
fn eq(&self, other: &RelBlockPath<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for RelBlockPath<'a>
impl<'a> Serialize for RelBlockPath<'a>
source§impl<'a> TryFrom<&'a String> for RelBlockPath<'a>
impl<'a> TryFrom<&'a String> for RelBlockPath<'a>
source§impl<'a> TryFrom<&'a str> for RelBlockPath<'a>
impl<'a> TryFrom<&'a str> for RelBlockPath<'a>
impl<'a> Eq for RelBlockPath<'a>
impl<'a> StructuralEq for RelBlockPath<'a>
impl<'a> StructuralPartialEq for RelBlockPath<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RelBlockPath<'a>
impl<'a> Send for RelBlockPath<'a>
impl<'a> Sync for RelBlockPath<'a>
impl<'a> Unpin for RelBlockPath<'a>
impl<'a> UnwindSafe for RelBlockPath<'a>
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