Struct datafusion_common::config::Extensions
source · pub struct Extensions(/* private fields */);
Expand description
A type-safe container for ConfigExtension
Implementations§
source§impl Extensions
impl Extensions
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new, empty Extensions
sourcepub fn insert<T: ConfigExtension>(&mut self, extension: T)
pub fn insert<T: ConfigExtension>(&mut self, extension: T)
Registers a ConfigExtension
with this ConfigOptions
sourcepub fn get<T: ConfigExtension>(&self) -> Option<&T>
pub fn get<T: ConfigExtension>(&self) -> Option<&T>
Retrieves the extension of the given type if any
sourcepub fn get_mut<T: ConfigExtension>(&mut self) -> Option<&mut T>
pub fn get_mut<T: ConfigExtension>(&mut self) -> Option<&mut T>
Retrieves the extension of the given type if any
Trait Implementations§
source§impl Clone for Extensions
impl Clone for Extensions
source§fn clone(&self) -> Extensions
fn clone(&self) -> Extensions
Returns a copy of the value. Read more
1.0.0 · 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 Extensions
impl Debug for Extensions
source§impl Default for Extensions
impl Default for Extensions
source§fn default() -> Extensions
fn default() -> Extensions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Extensions
impl !RefUnwindSafe for Extensions
impl Send for Extensions
impl Sync for Extensions
impl Unpin for Extensions
impl !UnwindSafe for Extensions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)