[−][src]Struct tydi::PathName
Type-safe path for names.
Allows wrapping a set of valid names in a hierarchy.
Methods
impl PathName
[src]
pub fn new(names: impl Iterator<Item = Name>) -> Self
[src]
pub fn try_new(
names: impl IntoIterator<Item = impl TryInto<Name, Error = Error>>
) -> Result<Self>
[src]
names: impl IntoIterator<Item = impl TryInto<Name, Error = Error>>
) -> Result<Self>
pub fn is_empty(&self) -> bool
[src]
Returns true if this PathName is empty (∅).
pub fn push(&mut self, name: impl Into<Name>)
[src]
pub fn len(&self) -> usize
[src]
pub fn last(&self) -> Option<&Name>
[src]
pub fn parent(&self) -> Option<PathName>
[src]
Trait Implementations
impl Clone for PathName
[src]
impl Debug for PathName
[src]
impl Display for PathName
[src]
impl Eq for PathName
[src]
impl From<Name> for PathName
[src]
impl FromIterator<Name> for PathName
[src]
fn from_iter<I: IntoIterator<Item = Name>>(iter: I) -> Self
[src]
impl Hash for PathName
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> IntoIterator for &'a PathName
[src]
type Item = &'a Name
The type of the elements being iterated over.
type IntoIter = Iter<'a, Name>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl Ord for PathName
[src]
fn cmp(&self, other: &PathName) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PathName> for PathName
[src]
impl PartialOrd<PathName> for PathName
[src]
fn partial_cmp(&self, other: &PathName) -> Option<Ordering>
[src]
fn lt(&self, other: &PathName) -> bool
[src]
fn le(&self, other: &PathName) -> bool
[src]
fn gt(&self, other: &PathName) -> bool
[src]
fn ge(&self, other: &PathName) -> bool
[src]
impl StructuralEq for PathName
[src]
impl StructuralPartialEq for PathName
[src]
impl<'_> TryFrom<&'_ str> for PathName
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(str: &str) -> Result<Self>
[src]
impl TryFrom<String> for PathName
[src]
Auto Trait Implementations
impl RefUnwindSafe for PathName
impl Send for PathName
impl Sync for PathName
impl Unpin for PathName
impl UnwindSafe for PathName
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,