Enum pg_interval::ParseError
source · [−]pub enum ParseError {
ParseIntErr(ParseIntError),
ParseFloatErr(ParseFloatError),
InvalidYearMonth(String),
InvalidTime(String),
InvalidInterval(String),
}
Variants
ParseIntErr(ParseIntError)
ParseFloatErr(ParseFloatError)
InvalidYearMonth(String)
InvalidTime(String)
InvalidInterval(String)
Implementations
sourceimpl<'a> ParseError
impl<'a> ParseError
pub fn from_year_month(message: &'a str) -> ParseError
pub fn from_time(message: &'a str) -> ParseError
pub fn from_invalid_interval(message: &'a str) -> ParseError
Trait Implementations
sourceimpl Debug for ParseError
impl Debug for ParseError
sourceimpl From<ParseFloatError> for ParseError
impl From<ParseFloatError> for ParseError
sourcefn from(error: ParseFloatError) -> ParseError
fn from(error: ParseFloatError) -> ParseError
Converts to this type from the input type.
sourceimpl From<ParseIntError> for ParseError
impl From<ParseIntError> for ParseError
sourcefn from(error: ParseIntError) -> ParseError
fn from(error: ParseIntError) -> ParseError
Converts to this type from the input type.
sourceimpl PartialEq<ParseError> for ParseError
impl PartialEq<ParseError> for ParseError
sourcefn eq(&self, other: &ParseError) -> bool
fn eq(&self, other: &ParseError) -> bool
impl Eq for ParseError
impl StructuralEq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more