@@ -778,34 +778,34 @@ pub trait AsArray: private::Sealed {
778
778
self . as_bytes_opt ( ) . expect ( "binary array" )
779
779
}
780
780
781
- /// Downcast this to a [`StringViewArray`] returning `None` if not possible
782
- fn as_string_view ( & self ) -> & StringViewArray {
783
- self . as_byte_view_opt ( ) . expect ( "string view array" )
784
- }
785
-
786
781
/// Downcast this to a [`StringViewArray`] returning `None` if not possible
787
782
fn as_string_view_opt ( & self ) -> Option < & StringViewArray > {
788
783
self . as_byte_view_opt ( )
789
784
}
790
785
791
- /// Downcast this to a [`StringViewArray`] returning `None` if not possible
792
- fn as_binary_view ( & self ) -> & BinaryViewArray {
793
- self . as_byte_view_opt ( ) . expect ( "binary view array" )
786
+ /// Downcast this to a [`StringViewArray`] panicking if not possible
787
+ fn as_string_view ( & self ) -> & StringViewArray {
788
+ self . as_byte_view_opt ( ) . expect ( "string view array" )
794
789
}
795
790
796
791
/// Downcast this to a [`BinaryViewArray`] returning `None` if not possible
797
792
fn as_binary_view_opt ( & self ) -> Option < & BinaryViewArray > {
798
793
self . as_byte_view_opt ( )
799
794
}
800
795
801
- /// Downcast this to a [`GenericByteViewArray `] returning `None` if not possible
802
- fn as_byte_view < T : ByteViewType > ( & self ) -> & GenericByteViewArray < T > {
803
- self . as_byte_view_opt ( ) . expect ( "byte view array" )
796
+ /// Downcast this to a [`BinaryViewArray `] panicking if not possible
797
+ fn as_binary_view ( & self ) -> & BinaryViewArray {
798
+ self . as_byte_view_opt ( ) . expect ( "binary view array" )
804
799
}
805
800
806
801
/// Downcast this to a [`GenericByteViewArray`] returning `None` if not possible
807
802
fn as_byte_view_opt < T : ByteViewType > ( & self ) -> Option < & GenericByteViewArray < T > > ;
808
803
804
+ /// Downcast this to a [`GenericByteViewArray`] panicking if not possible
805
+ fn as_byte_view < T : ByteViewType > ( & self ) -> & GenericByteViewArray < T > {
806
+ self . as_byte_view_opt ( ) . expect ( "byte view array" )
807
+ }
808
+
809
809
/// Downcast this to a [`StructArray`] returning `None` if not possible
810
810
fn as_struct_opt ( & self ) -> Option < & StructArray > ;
811
811
0 commit comments