pub struct DefaultFileType { /* private fields */ }
Expand description
A container of FileFormatFactory which also implements FileType. This enables converting a dyn FileFormat to a dyn FileType. The former trait is a superset of the latter trait, which includes execution time relevant methods. FileType is only used in logical planning and only implements the subset of methods required during logical planning.
Implementations§
Source§impl DefaultFileType
impl DefaultFileType
Sourcepub fn new(file_format_factory: Arc<dyn FileFormatFactory>) -> Self
pub fn new(file_format_factory: Arc<dyn FileFormatFactory>) -> Self
Constructs a DefaultFileType wrapper from a FileFormatFactory
Sourcepub fn as_format_factory(&self) -> &Arc<dyn FileFormatFactory>
pub fn as_format_factory(&self) -> &Arc<dyn FileFormatFactory>
get a reference to the inner FileFormatFactory struct
Trait Implementations§
Source§impl Debug for DefaultFileType
impl Debug for DefaultFileType
Source§impl Display for DefaultFileType
impl Display for DefaultFileType
Source§impl FileType for DefaultFileType
impl FileType for DefaultFileType
Auto Trait Implementations§
impl Freeze for DefaultFileType
impl !RefUnwindSafe for DefaultFileType
impl Send for DefaultFileType
impl Sync for DefaultFileType
impl Unpin for DefaultFileType
impl !UnwindSafe for DefaultFileType
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more