Enum pregel_rs::graph_frame::GraphFrameError
source · pub enum GraphFrameError {
FromPolars(PolarsError),
MissingColumn(MissingColumnError),
}Expand description
GraphFrameError is an enum that represents the different types of errors that
can occur when working with a GraphFrame. It has three variants: DuckDbError,
FromPolars and MissingColumn.
Variants§
FromPolars(PolarsError)
FromPolars is a variant of GraphFrameError that represents errors that
occur when converting from a PolarsError.
MissingColumn(MissingColumnError)
MissingColumn is a variant of GraphFrameError that represents errors that
occur when a required column is missing from a DataFrame.
Trait Implementations§
source§impl Debug for GraphFrameError
impl Debug for GraphFrameError
source§impl Display for GraphFrameError
impl Display for GraphFrameError
This is an implementation of the Display trait for the GraphFrameError enum.
It allows instances of the GraphFrameError enum to be formatted as strings
when they need to be displayed to the user. The fmt method takes a mutable
reference to a Formatter object and returns a fmt::Result. It matches on the
enum variants and calls the Display trait’s fmt method on the inner error
object to format the error message.
source§impl Error for GraphFrameError
impl Error for GraphFrameError
This is an implementation of the Error trait for a custom error type
GraphFrameError. It defines the source method which returns the underlying
cause of the error as an optional reference to a dyn error::Error trait
object. If the error is caused by a FromPolars error, it returns the reference
to the underlying error. If the error is caused by a missing column, it returns
None.