@@ -30,17 +30,17 @@ pub type ExtID = ArcRef<str>;
3030
3131/// An extension data type.
3232#[ derive( Clone ) ]
33- pub struct ExtDType < V : VTable > ( Arc < ExtDTypeAdapter < V > > ) ;
33+ pub struct ExtDType < V : ExtDTypeVTable > ( Arc < ExtDTypeAdapter < V > > ) ;
3434
3535// Convenience impls for zero-sized VTables
36- impl < V : VTable + Default > ExtDType < V > {
36+ impl < V : ExtDTypeVTable + Default > ExtDType < V > {
3737 /// Creates a new extension dtype with the given options and storage dtype.
3838 pub fn try_new ( options : V :: Options , storage_dtype : DType ) -> VortexResult < Self > {
3939 Self :: try_with_vtable ( V :: default ( ) , options, storage_dtype)
4040 }
4141}
4242
43- impl < V : VTable > ExtDType < V > {
43+ impl < V : ExtDTypeVTable > ExtDType < V > {
4444 /// Creates a new extension dtype with the given options and storage dtype.
4545 pub fn try_with_vtable (
4646 vtable : V ,
@@ -175,7 +175,7 @@ impl ExtDTypeRef {
175175 /// Downcast to the concrete options type.
176176 ///
177177 /// Returns `Err(self)` if the downcast fails.
178- pub fn try_downcast < V : VTable > ( self ) -> Result < ExtDType < V > , ExtDTypeRef > {
178+ pub fn try_downcast < V : ExtDTypeVTable > ( self ) -> Result < ExtDType < V > , ExtDTypeRef > {
179179 // Check if the concrete type matches
180180 if self . 0 . as_any ( ) . is :: < ExtDTypeAdapter < V > > ( ) {
181181 // SAFETY: type matches and ExtDTypeImpl<V> is the only implementor
@@ -192,7 +192,7 @@ impl ExtDTypeRef {
192192 /// # Panics
193193 ///
194194 /// Panics if the downcast fails.
195- pub fn downcast < V : VTable > ( self ) -> ExtDType < V > {
195+ pub fn downcast < V : ExtDTypeVTable > ( self ) -> ExtDType < V > {
196196 self . try_downcast :: < V > ( )
197197 . map_err ( |this| {
198198 vortex_err ! (
@@ -256,13 +256,13 @@ trait ExtDTypeImpl: 'static + Send + Sync + private::Sealed {
256256 fn with_nullability ( & self , nullability : Nullability ) -> ExtDTypeRef ;
257257}
258258
259- struct ExtDTypeAdapter < V : VTable > {
259+ struct ExtDTypeAdapter < V : ExtDTypeVTable > {
260260 vtable : V ,
261261 options : V :: Options ,
262262 storage_dtype : DType ,
263263}
264264
265- impl < V : VTable > ExtDTypeImpl for ExtDTypeAdapter < V > {
265+ impl < V : ExtDTypeVTable > ExtDTypeImpl for ExtDTypeAdapter < V > {
266266 fn as_any ( & self ) -> & dyn Any {
267267 self
268268 }
@@ -313,5 +313,5 @@ mod private {
313313 use super :: ExtDTypeAdapter ;
314314
315315 pub trait Sealed { }
316- impl < V : super :: VTable > Sealed for ExtDTypeAdapter < V > { }
316+ impl < V : super :: ExtDTypeVTable > Sealed for ExtDTypeAdapter < V > { }
317317}
0 commit comments