File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -225,14 +225,14 @@ impl U256 {
225
225
/// Create a 256-bit unsigned integer from a byte array.
226
226
///
227
227
/// The byte array is in Big Endian order.
228
- pub fn from_byte_array ( bytes : [ u8 ; 32 ] ) -> Self {
228
+ pub const fn from_byte_array ( bytes : [ u8 ; 32 ] ) -> Self {
229
229
Self ( bytes)
230
230
}
231
231
232
232
/// Convert the integer to a byte array.
233
233
///
234
234
/// The byte array is in Big Endian order.
235
- pub fn to_byte_array ( self ) -> [ u8 ; 32 ] {
235
+ pub const fn to_byte_array ( self ) -> [ u8 ; 32 ] {
236
236
self . 0
237
237
}
238
238
}
Original file line number Diff line number Diff line change @@ -607,12 +607,12 @@ impl From<UIntValue> for Value {
607
607
608
608
impl Value {
609
609
/// Access the inner structure of the value.
610
- pub fn inner ( & self ) -> & ValueInner {
610
+ pub const fn inner ( & self ) -> & ValueInner {
611
611
& self . inner
612
612
}
613
613
614
614
/// Access the type of the value.
615
- pub fn ty ( & self ) -> & ResolvedType {
615
+ pub const fn ty ( & self ) -> & ResolvedType {
616
616
& self . ty
617
617
}
618
618
You can’t perform that action at this time.
0 commit comments