#[repr(transparent)]pub struct ForeignLibraryModuleRef(pub PrefixRef<ForeignLibraryModule_Prefix>);integration-tests only.Expand description
This is the pointer to the prefix of
ForeignLibraryModule.
This is automatically generated documentation,by the StableAbi derive macro.
§Creating a compiletime-constant
You can look at the docs in ::abi_stable::docs::prefix_types to see how you
can construct and use this and similar types.
More specifically in the
“constructing a module” example
or the
“Constructing a vtable” example
Tuple Fields§
§0: PrefixRef<ForeignLibraryModule_Prefix>Implementations§
Source§impl ForeignLibraryModuleRef
impl ForeignLibraryModuleRef
Sourcepub fn _prefix_type_layout(self) -> &'static PTStructLayout
pub fn _prefix_type_layout(self) -> &'static PTStructLayout
Accessor to get the layout of the type,used for error messages.
Sourcepub fn create_catalog(&self) -> Option<extern "C" fn() -> FFI_CatalogProvider>
pub fn create_catalog(&self) -> Option<extern "C" fn() -> FFI_CatalogProvider>
Accessor method for the ForeignLibraryModule::create_catalog field.Returns Some(field_value) if the field exists,None if it does not.
Sourcepub fn create_table(
&self,
) -> Option<extern "C" fn(synchronous: bool) -> FFI_TableProvider>
pub fn create_table( &self, ) -> Option<extern "C" fn(synchronous: bool) -> FFI_TableProvider>
Accessor method for the ForeignLibraryModule::create_table field.Returns Some(field_value) if the field exists,None if it does not.
Sourcepub fn create_scalar_udf(&self) -> Option<extern "C" fn() -> FFI_ScalarUDF>
pub fn create_scalar_udf(&self) -> Option<extern "C" fn() -> FFI_ScalarUDF>
Accessor method for the ForeignLibraryModule::create_scalar_udf field.Returns Some(field_value) if the field exists,None if it does not.
Sourcepub fn create_nullary_udf(&self) -> Option<extern "C" fn() -> FFI_ScalarUDF>
pub fn create_nullary_udf(&self) -> Option<extern "C" fn() -> FFI_ScalarUDF>
Accessor method for the ForeignLibraryModule::create_nullary_udf field.Returns Some(field_value) if the field exists,None if it does not.
Sourcepub fn create_table_function(
&self,
) -> Option<extern "C" fn() -> FFI_TableFunction>
pub fn create_table_function( &self, ) -> Option<extern "C" fn() -> FFI_TableFunction>
Accessor method for the ForeignLibraryModule::create_table_function field.Returns Some(field_value) if the field exists,None if it does not.
Sourcepub fn create_sum_udaf(&self) -> Option<extern "C" fn() -> FFI_AggregateUDF>
pub fn create_sum_udaf(&self) -> Option<extern "C" fn() -> FFI_AggregateUDF>
Accessor method for the ForeignLibraryModule::create_sum_udaf field.Returns Some(field_value) if the field exists,None if it does not.
Sourcepub fn create_stddev_udaf(&self) -> Option<extern "C" fn() -> FFI_AggregateUDF>
pub fn create_stddev_udaf(&self) -> Option<extern "C" fn() -> FFI_AggregateUDF>
Accessor method for the ForeignLibraryModule::create_stddev_udaf field.Returns Some(field_value) if the field exists,None if it does not.
Sourcepub fn create_rank_udwf(&self) -> Option<extern "C" fn() -> FFI_WindowUDF>
pub fn create_rank_udwf(&self) -> Option<extern "C" fn() -> FFI_WindowUDF>
Accessor method for the ForeignLibraryModule::create_rank_udwf field.Returns Some(field_value) if the field exists,None if it does not.
Trait Implementations§
Source§impl Clone for ForeignLibraryModuleRef
impl Clone for ForeignLibraryModuleRef
Source§impl GetPointerKind for ForeignLibraryModuleRef
impl GetPointerKind for ForeignLibraryModuleRef
Source§type PtrTarget = WithMetadata_<ForeignLibraryModule_Prefix, ForeignLibraryModule_Prefix>
type PtrTarget = WithMetadata_<ForeignLibraryModule_Prefix, ForeignLibraryModule_Prefix>
Source§type Kind = PK_Reference
type Kind = PK_Reference
Source§impl GetStaticEquivalent_ for ForeignLibraryModuleRefwhere
ForeignLibraryModule: PrefixTypeTrait,
impl GetStaticEquivalent_ for ForeignLibraryModuleRefwhere
ForeignLibraryModule: PrefixTypeTrait,
Source§type StaticEquivalent = PrefixRef<_static_ForeignLibraryModule>
type StaticEquivalent = PrefixRef<_static_ForeignLibraryModule>
'static equivalent of SelfSource§impl PrefixRefTrait for ForeignLibraryModuleRef
impl PrefixRefTrait for ForeignLibraryModuleRef
Source§type PrefixFields = ForeignLibraryModule_Prefix
type PrefixFields = ForeignLibraryModule_Prefix
#[sabi(last_prefix_field)] inclusive. Read moreSource§fn from_prefix_ref(this: PrefixRef<Self::PrefixFields>) -> Self
fn from_prefix_ref(this: PrefixRef<Self::PrefixFields>) -> Self
PrefixRef to SelfSource§fn to_prefix_ref(self) -> PrefixRef<Self::PrefixFields>
fn to_prefix_ref(self) -> PrefixRef<Self::PrefixFields>
Self to a PrefixRefSource§impl RootModule for ForeignLibraryModuleRef
impl RootModule for ForeignLibraryModuleRef
Source§const BASE_NAME: &'static str = "datafusion_ffi"
const BASE_NAME: &'static str = "datafusion_ffi"
implementation crate.Source§const VERSION_STRINGS: VersionStrings
const VERSION_STRINGS: VersionStrings
Source§fn root_module_statics() -> &'static RootModuleStatics<ForeignLibraryModuleRef>
fn root_module_statics() -> &'static RootModuleStatics<ForeignLibraryModuleRef>
Source§fn initialization(self) -> Result<Self, LibraryError>
fn initialization(self) -> Result<Self, LibraryError>
Source§const CONSTANTS: RootModuleConsts = _
const CONSTANTS: RootModuleConsts = _
Source§const CONSTANTS_NO_ABI_INFO: RootModuleConsts = _
const CONSTANTS_NO_ABI_INFO: RootModuleConsts = _
Self::CONSTANTS,
except without including the type layout constant for the root module.Source§fn get_module() -> Option<Self>
fn get_module() -> Option<Self>
Source§fn get_raw_library() -> Option<&'static RawLibrary>
fn get_raw_library() -> Option<&'static RawLibrary>
Source§fn get_library_path(directory: &Path) -> PathBuf
fn get_library_path(directory: &Path) -> PathBuf
Source§fn load_module_with<F, E>(f: F) -> Result<Self, E>
fn load_module_with<F, E>(f: F) -> Result<Self, E>
Source§fn load_from(where_: LibraryPath<'_>) -> Result<Self, LibraryError>
fn load_from(where_: LibraryPath<'_>) -> Result<Self, LibraryError>
where_,
first loading the dynamic library if it wasn’t already loaded. Read moreSource§fn load_from_directory(where_: &Path) -> Result<Self, LibraryError>
fn load_from_directory(where_: &Path) -> Result<Self, LibraryError>
where_,
first loading the dynamic library if it wasn’t already loaded. Read moreSource§fn load_from_file(path_: &Path) -> Result<Self, LibraryError>
fn load_from_file(path_: &Path) -> Result<Self, LibraryError>
path_,
first loading the dynamic library if it wasn’t already loaded. Read moreSource§impl StableAbi for ForeignLibraryModuleRefwhere
ForeignLibraryModule: PrefixTypeTrait,
impl StableAbi for ForeignLibraryModuleRefwhere
ForeignLibraryModule: PrefixTypeTrait,
Source§const LAYOUT: &'static TypeLayout = <__sabi_re::PrefixRef<ForeignLibraryModule_Prefix> as
__sabi_re::StableAbi>::LAYOUT
const LAYOUT: &'static TypeLayout = <__sabi_re::PrefixRef<ForeignLibraryModule_Prefix> as __sabi_re::StableAbi>::LAYOUT
Source§type IsNonZeroType = True
type IsNonZeroType = True
Source§const ABI_CONSTS: AbiConsts = _
const ABI_CONSTS: AbiConsts = _
const-equivalents of the associated types.impl Copy for ForeignLibraryModuleRef
Auto Trait Implementations§
impl Freeze for ForeignLibraryModuleRef
impl RefUnwindSafe for ForeignLibraryModuleRef
impl Send for ForeignLibraryModuleRef
impl Sync for ForeignLibraryModuleRef
impl Unpin for ForeignLibraryModuleRef
impl UnwindSafe for ForeignLibraryModuleRef
Blanket Implementations§
Source§impl<T> AlignerFor<1> for T
impl<T> AlignerFor<1> for T
Source§impl<T> AlignerFor<1024> for T
impl<T> AlignerFor<1024> for T
Source§type Aligner = AlignTo1024<T>
type Aligner = AlignTo1024<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<128> for T
impl<T> AlignerFor<128> for T
Source§type Aligner = AlignTo128<T>
type Aligner = AlignTo128<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<16> for T
impl<T> AlignerFor<16> for T
Source§impl<T> AlignerFor<16384> for T
impl<T> AlignerFor<16384> for T
Source§type Aligner = AlignTo16384<T>
type Aligner = AlignTo16384<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<2> for T
impl<T> AlignerFor<2> for T
Source§impl<T> AlignerFor<2048> for T
impl<T> AlignerFor<2048> for T
Source§type Aligner = AlignTo2048<T>
type Aligner = AlignTo2048<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<256> for T
impl<T> AlignerFor<256> for T
Source§type Aligner = AlignTo256<T>
type Aligner = AlignTo256<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<32> for T
impl<T> AlignerFor<32> for T
Source§impl<T> AlignerFor<32768> for T
impl<T> AlignerFor<32768> for T
Source§type Aligner = AlignTo32768<T>
type Aligner = AlignTo32768<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<4> for T
impl<T> AlignerFor<4> for T
Source§impl<T> AlignerFor<4096> for T
impl<T> AlignerFor<4096> for T
Source§type Aligner = AlignTo4096<T>
type Aligner = AlignTo4096<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<512> for T
impl<T> AlignerFor<512> for T
Source§type Aligner = AlignTo512<T>
type Aligner = AlignTo512<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<64> for T
impl<T> AlignerFor<64> for T
Source§impl<T> AlignerFor<8> for T
impl<T> AlignerFor<8> for T
Source§impl<T> AlignerFor<8192> for T
impl<T> AlignerFor<8192> for T
Source§type Aligner = AlignTo8192<T>
type Aligner = AlignTo8192<T>
AlignTo* type which aligns Self to ALIGNMENT.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> ImmutableRef for T
impl<T> ImmutableRef for T
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>
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>
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 moreSource§impl<M> IntoRootModuleResult for Mwhere
M: RootModule,
impl<M> IntoRootModuleResult for Mwhere
M: RootModule,
Source§fn into_root_module_result(self) -> Result<M, RootModuleError>
fn into_root_module_result(self) -> Result<M, RootModuleError>
Source§impl<'a, T> RCowCompatibleRef<'a> for Twhere
T: Clone + 'a,
impl<'a, T> RCowCompatibleRef<'a> for Twhere
T: Clone + 'a,
Source§fn as_c_ref(from: &'a T) -> <T as RCowCompatibleRef<'a>>::RefC
fn as_c_ref(from: &'a T) -> <T as RCowCompatibleRef<'a>>::RefC
Source§fn as_rust_ref(from: <T as RCowCompatibleRef<'a>>::RefC) -> &'a T
fn as_rust_ref(from: <T as RCowCompatibleRef<'a>>::RefC) -> &'a T
Source§impl<S> ROExtAcc for S
impl<S> ROExtAcc for S
Source§fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
offset. Read moreSource§fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
offset. Read moreSource§fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
offset. Read moreSource§fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
offset. Read moreSource§impl<S> ROExtOps<Aligned> for S
impl<S> ROExtOps<Aligned> for S
Source§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
offset) with value,
returning the previous value of the field. Read moreSource§fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere
F: Copy,
fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere
F: Copy,
Source§impl<S> ROExtOps<Unaligned> for S
impl<S> ROExtOps<Unaligned> for S
Source§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
offset) with value,
returning the previous value of the field. Read moreSource§fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> Fwhere
F: Copy,
fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> Fwhere
F: Copy,
Source§impl<T> SelfOps for Twhere
T: ?Sized,
impl<T> SelfOps for Twhere
T: ?Sized,
Source§fn piped<F, U>(self, f: F) -> U
fn piped<F, U>(self, f: F) -> U
Source§fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
piped except that the function takes &Self
Useful for functions that take &Self instead of Self. Read moreSource§fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
piped, except that the function takes &mut Self.
Useful for functions that take &mut Self instead of Self.Source§fn mutated<F>(self, f: F) -> Self
fn mutated<F>(self, f: F) -> Self
Source§fn observe<F>(self, f: F) -> Self
fn observe<F>(self, f: F) -> Self
Source§fn as_ref_<T>(&self) -> &T
fn as_ref_<T>(&self) -> &T
AsRef,
using the turbofish .as_ref_::<_>() syntax. Read moreSource§impl<This> TransmuteElement for Thiswhere
This: ?Sized,
impl<This> TransmuteElement for Thiswhere
This: ?Sized,
Source§unsafe fn transmute_element<T>(self) -> Self::TransmutedPtrwhere
Self: CanTransmuteElement<T>,
unsafe fn transmute_element<T>(self) -> Self::TransmutedPtrwhere
Self: CanTransmuteElement<T>,
Source§impl<T> TypeIdentity for Twhere
T: ?Sized,
impl<T> TypeIdentity for Twhere
T: ?Sized,
Source§fn as_type_mut(&mut self) -> &mut Self::Type
fn as_type_mut(&mut self) -> &mut Self::Type
Source§fn into_type_box(self: Box<Self>) -> Box<Self::Type>
fn into_type_box(self: Box<Self>) -> Box<Self::Type>
alloc only.Source§fn into_type_arc(this: Arc<Self>) -> Arc<Self::Type>
fn into_type_arc(this: Arc<Self>) -> Arc<Self::Type>
alloc only.Source§fn into_type_rc(this: Rc<Self>) -> Rc<Self::Type>
fn into_type_rc(this: Rc<Self>) -> Rc<Self::Type>
alloc only.Source§fn from_type_ref(this: &Self::Type) -> &Self
fn from_type_ref(this: &Self::Type) -> &Self
Source§fn from_type_mut(this: &mut Self::Type) -> &mut Self
fn from_type_mut(this: &mut Self::Type) -> &mut Self
Source§fn from_type_box(this: Box<Self::Type>) -> Box<Self>
fn from_type_box(this: Box<Self::Type>) -> Box<Self>
alloc only.