pub enum SnippetError {
FieldNotStored,
ZeroWindow,
}Expand description
Why a snippet could not be produced.
Variants§
FieldNotStored
The field was not configured stored, so no offsets exist.
This is typed rather than guessed: returning a re-analyzed approximation would silently disagree with the index.
ZeroWindow
The requested window length was zero.
Trait Implementations§
Source§impl Clone for SnippetError
impl Clone for SnippetError
Source§fn clone(&self) -> SnippetError
fn clone(&self) -> SnippetError
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 moreimpl Copy for SnippetError
Source§impl Debug for SnippetError
impl Debug for SnippetError
Source§impl Display for SnippetError
impl Display for SnippetError
impl Eq for SnippetError
Source§impl Error for SnippetError
impl Error for SnippetError
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 From<SnippetError> for StoreLexicalError
impl From<SnippetError> for StoreLexicalError
Source§fn from(error: SnippetError) -> Self
fn from(error: SnippetError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SnippetError
impl PartialEq for SnippetError
impl StructuralPartialEq for SnippetError
Auto Trait Implementations§
impl Freeze for SnippetError
impl RefUnwindSafe for SnippetError
impl Send for SnippetError
impl Sync for SnippetError
impl Unpin for SnippetError
impl UnsafeUnpin for SnippetError
impl UnwindSafe for SnippetError
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