pub enum LocationQueryBuildError {
MissingSegment,
InvalidSegmentLength,
InvalidSegmentName,
InvalidSegmentIndex,
InvalidFieldIndex,
InvalidRepeatIndex,
InvalidComponentIndex,
InvalidSubcomponentIndex,
}Expand description
Errors that can occur when building a location query
Variants§
MissingSegment
The segment is missing
InvalidSegmentLength
The segment is not 3 characters long
InvalidSegmentName
The segment contains non-ASCII uppercase characters
InvalidSegmentIndex
The segment index is 0
InvalidFieldIndex
The field index is 0
InvalidRepeatIndex
The repeat index is 0
InvalidComponentIndex
The component index is 0
InvalidSubcomponentIndex
The subcomponent index is 0
Trait Implementations§
Source§impl Clone for LocationQueryBuildError
impl Clone for LocationQueryBuildError
Source§fn clone(&self) -> LocationQueryBuildError
fn clone(&self) -> LocationQueryBuildError
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 LocationQueryBuildError
impl Debug for LocationQueryBuildError
Source§impl Display for LocationQueryBuildError
impl Display for LocationQueryBuildError
Source§impl Error for LocationQueryBuildError
impl Error for LocationQueryBuildError
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()
Auto Trait Implementations§
impl Freeze for LocationQueryBuildError
impl RefUnwindSafe for LocationQueryBuildError
impl Send for LocationQueryBuildError
impl Sync for LocationQueryBuildError
impl Unpin for LocationQueryBuildError
impl UnsafeUnpin for LocationQueryBuildError
impl UnwindSafe for LocationQueryBuildError
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