pub enum TablePathRefError {
EmptyReference,
EmptySegment,
AmbiguousSeparator(char),
BadEscape {
index: usize,
},
InvalidUtf8Escape,
IllegalSegment(String),
TooManySegments {
limit: usize,
},
ReferenceTooLong {
limit: usize,
},
ExpectedAbsolute,
RootEscape,
}Expand description
Why parsing or resolving a TablePathRef failed.
Variants§
EmptyReference
The textual reference was empty.
EmptySegment
A separator created an empty path component.
AmbiguousSeparator(char)
The textual reference used a separator other than /.
BadEscape
A percent escape was incomplete or contained a non-hex digit.
InvalidUtf8Escape
Percent escapes did not decode to UTF-8.
IllegalSegment(String)
The decoded component is not a legal table segment.
TooManySegments
The reference exceeds MAX_TABLE_PATH_SEGMENTS.
ReferenceTooLong
The textual reference exceeds MAX_TABLE_PATH_TEXT_BYTES.
ExpectedAbsolute
An absolute path was required.
RootEscape
Resolving .. would move above root.
Trait Implementations§
Source§impl Clone for TablePathRefError
impl Clone for TablePathRefError
Source§fn clone(&self) -> TablePathRefError
fn clone(&self) -> TablePathRefError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TablePathRefError
impl Debug for TablePathRefError
impl Eq for TablePathRefError
Source§impl PartialEq for TablePathRefError
impl PartialEq for TablePathRefError
impl StructuralPartialEq for TablePathRefError
Auto Trait Implementations§
impl Freeze for TablePathRefError
impl RefUnwindSafe for TablePathRefError
impl Send for TablePathRefError
impl Sync for TablePathRefError
impl Unpin for TablePathRefError
impl UnsafeUnpin for TablePathRefError
impl UnwindSafe for TablePathRefError
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