add missing Scalar::from_i128
This commit is contained in:
parent
655600c5cb
commit
e26e42fabe
1 changed files with 5 additions and 0 deletions
|
@ -196,6 +196,11 @@ impl<Prov> Scalar<Prov> {
|
|||
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]
|
||||
pub fn from_target_isize(i: i64, cx: &impl HasDataLayout) -> Self {
|
||||
Self::from_int(i, cx.data_layout().pointer_size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue