add missing Scalar::from_i128
This commit is contained in:
parent
655600c5cb
commit
e26e42fabe
@ -196,6 +196,11 @@ pub fn from_i64(i: i64) -> Self {
|
|||||||
Self::from_int(i, Size::from_bits(64))
|
Self::from_int(i, Size::from_bits(64))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn from_i128(i: i128) -> Self {
|
||||||
|
Self::from_int(i, Size::from_bits(128))
|
||||||
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn from_target_isize(i: i64, cx: &impl HasDataLayout) -> Self {
|
pub fn from_target_isize(i: i64, cx: &impl HasDataLayout) -> Self {
|
||||||
Self::from_int(i, cx.data_layout().pointer_size)
|
Self::from_int(i, cx.data_layout().pointer_size)
|
||||||
|
Loading…
Reference in New Issue
Block a user