@@ -12,63 +12,63 @@ use crate::search_sorted::IndexOrd;
1212
1313impl dyn Array + ' _ {
1414 /// Downcasts the array for null-specific behavior.
15- pub fn as_null_typed ( & self ) -> NullTyped {
15+ pub fn as_null_typed ( & self ) -> NullTyped < ' _ > {
1616 matches ! ( self . dtype( ) , DType :: Null )
1717 . then ( || NullTyped ( self ) )
1818 . vortex_expect ( "Array does not have DType::Null" )
1919 }
2020
2121 /// Downcasts the array for bool-specific behavior.
22- pub fn as_bool_typed ( & self ) -> BoolTyped {
22+ pub fn as_bool_typed ( & self ) -> BoolTyped < ' _ > {
2323 matches ! ( self . dtype( ) , DType :: Bool ( ..) )
2424 . then ( || BoolTyped ( self ) )
2525 . vortex_expect ( "Array does not have DType::Bool" )
2626 }
2727
2828 /// Downcasts the array for primitive-specific behavior.
29- pub fn as_primitive_typed ( & self ) -> PrimitiveTyped {
29+ pub fn as_primitive_typed ( & self ) -> PrimitiveTyped < ' _ > {
3030 matches ! ( self . dtype( ) , DType :: Primitive ( ..) )
3131 . then ( || PrimitiveTyped ( self ) )
3232 . vortex_expect ( "Array does not have DType::Primitive" )
3333 }
3434
3535 /// Downcasts the array for decimal-specific behavior.
36- pub fn as_decimal_typed ( & self ) -> DecimalTyped {
36+ pub fn as_decimal_typed ( & self ) -> DecimalTyped < ' _ > {
3737 matches ! ( self . dtype( ) , DType :: Decimal ( ..) )
3838 . then ( || DecimalTyped ( self ) )
3939 . vortex_expect ( "Array does not have DType::Decimal" )
4040 }
4141
4242 /// Downcasts the array for utf8-specific behavior.
43- pub fn as_utf8_typed ( & self ) -> Utf8Typed {
43+ pub fn as_utf8_typed ( & self ) -> Utf8Typed < ' _ > {
4444 matches ! ( self . dtype( ) , DType :: Utf8 ( ..) )
4545 . then ( || Utf8Typed ( self ) )
4646 . vortex_expect ( "Array does not have DType::Utf8" )
4747 }
4848
4949 /// Downcasts the array for binary-specific behavior.
50- pub fn as_binary_typed ( & self ) -> BinaryTyped {
50+ pub fn as_binary_typed ( & self ) -> BinaryTyped < ' _ > {
5151 matches ! ( self . dtype( ) , DType :: Binary ( ..) )
5252 . then ( || BinaryTyped ( self ) )
5353 . vortex_expect ( "Array does not have DType::Binary" )
5454 }
5555
5656 /// Downcasts the array for struct-specific behavior.
57- pub fn as_struct_typed ( & self ) -> StructTyped {
57+ pub fn as_struct_typed ( & self ) -> StructTyped < ' _ > {
5858 matches ! ( self . dtype( ) , DType :: Struct ( ..) )
5959 . then ( || StructTyped ( self ) )
6060 . vortex_expect ( "Array does not have DType::Struct" )
6161 }
6262
6363 /// Downcasts the array for list-specific behavior.
64- pub fn as_list_typed ( & self ) -> ListTyped {
64+ pub fn as_list_typed ( & self ) -> ListTyped < ' _ > {
6565 matches ! ( self . dtype( ) , DType :: List ( ..) )
6666 . then ( || ListTyped ( self ) )
6767 . vortex_expect ( "Array does not have DType::List" )
6868 }
6969
7070 /// Downcasts the array for extension-specific behavior.
71- pub fn as_extension_typed ( & self ) -> ExtensionTyped {
71+ pub fn as_extension_typed ( & self ) -> ExtensionTyped < ' _ > {
7272 matches ! ( self . dtype( ) , DType :: Extension ( ..) )
7373 . then ( || ExtensionTyped ( self ) )
7474 . vortex_expect ( "Array does not have DType::Extension" )
0 commit comments