pub struct DotSegmentError<'a> { /* private fields */ }Expand description
Error returned by SafePathSegment::new when segment is exactly . or ...
Borrows the rejected segment rather than owning it: every caller either reads it
immediately (the rejection is already fatal to the current operation) or discards it in
favor of SafePathSegment::checked_or_reject’s own registry-error construction, so an
owned String would only add an allocation on an already-adversarial-input path.
Implementations§
Source§impl<'a> DotSegmentError<'a>
impl<'a> DotSegmentError<'a>
Sourcepub const fn segment(&self) -> &'a str
pub const fn segment(&self) -> &'a str
The rejected segment, for building a registry-specific
DepsError via
dot_segment_rejection_error.
Trait Implementations§
Source§impl<'a> Clone for DotSegmentError<'a>
impl<'a> Clone for DotSegmentError<'a>
impl<'a> Copy for DotSegmentError<'a>
Source§impl<'a> Debug for DotSegmentError<'a>
impl<'a> Debug for DotSegmentError<'a>
Source§impl<'a> Display for DotSegmentError<'a>
impl<'a> Display for DotSegmentError<'a>
impl<'a> Eq for DotSegmentError<'a>
Source§impl<'a> Error for DotSegmentError<'a>
impl<'a> Error for DotSegmentError<'a>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<'a> PartialEq for DotSegmentError<'a>
impl<'a> PartialEq for DotSegmentError<'a>
impl<'a> StructuralPartialEq for DotSegmentError<'a>
Auto Trait Implementations§
impl<'a> Freeze for DotSegmentError<'a>
impl<'a> RefUnwindSafe for DotSegmentError<'a>
impl<'a> Send for DotSegmentError<'a>
impl<'a> Sync for DotSegmentError<'a>
impl<'a> Unpin for DotSegmentError<'a>
impl<'a> UnsafeUnpin for DotSegmentError<'a>
impl<'a> UnwindSafe for DotSegmentError<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.