File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
module Core.Convert
3
3
open Rust_primitives
4
4
5
- class try_into_tc self t = {
5
+ class t_TryInto self t = {
6
6
[ @@@FStar.Tactics.Typeclasses. no_method ]
7
7
f_Error : Type0;
8
8
f_try_into : self -> Core.Result. t_Result t f_Error
9
9
}
10
10
11
- instance impl_6 ( t : Type0) ( len : usize ): try_into_tc ( t_Slice t ) ( t_Array t len ) = {
11
+ instance impl_6 ( t : Type0) ( len : usize ): t_TryInto ( t_Slice t ) ( t_Array t len ) = {
12
12
f_Error = Core.Array. t_TryFromSliceError ;
13
13
f_try_into = ( fun ( s : t_Slice t ) ->
14
14
if Core.Slice. impl__len s = len
@@ -17,14 +17,14 @@ instance impl_6 (t: Type0) (len: usize): try_into_tc (t_Slice t) (t_Array t len)
17
17
)
18
18
}
19
19
20
- instance impl_6_refined ( t : Type0) ( len : usize ): try_into_tc ( s : t_Slice t { Core.Slice. impl__len s == len }) ( t_Array t len ) = {
20
+ instance impl_6_refined ( t : Type0) ( len : usize ): t_TryInto ( s : t_Slice t { Core.Slice. impl__len s == len }) ( t_Array t len ) = {
21
21
f_Error = Core.Array. t_TryFromSliceError ;
22
22
f_try_into = ( fun ( s : t_Slice t { Core.Slice. impl__len s == len }) ->
23
23
Core.Result. Result_Ok ( s <: t_Array t len )
24
24
)
25
25
}
26
26
27
- instance integer_try_into ( t : inttype ) ( t' : inttype ) : try_into_tc ( int_t t ) ( int_t t' ) = {
27
+ instance integer_try_into ( t : inttype ) ( t' : inttype ) : t_TryInto ( int_t t ) ( int_t t' ) = {
28
28
f_Error = Core.Num.Error. t_TryFromIntError ;
29
29
f_try_into = ( fun ( x : int_t t ) ->
30
30
if range ( v # t x ) t'
You can’t perform that action at this time.
0 commit comments