pub struct PAdicNumber {
pub numerator: PAdicInteger,
pub valuation: i64,
}Expand description
A p-adic number x = p^v · u where u is a p-adic integer and v is the valuation.
Fields§
§numerator: PAdicIntegerThe p-adic integer part (numerator after extracting powers of p).
valuation: i64The p-adic valuation v_p(x).
Implementations§
Source§impl PAdicNumber
impl PAdicNumber
Sourcepub fn p_adic_valuation(&self) -> i64
pub fn p_adic_valuation(&self) -> i64
Return the p-adic valuation v_p(x).
Sourcepub fn is_integer(&self) -> bool
pub fn is_integer(&self) -> bool
True if x lies in ℤ_p (valuation ≥ 0).
Auto Trait Implementations§
impl Freeze for PAdicNumber
impl RefUnwindSafe for PAdicNumber
impl Send for PAdicNumber
impl Sync for PAdicNumber
impl Unpin for PAdicNumber
impl UnsafeUnpin for PAdicNumber
impl UnwindSafe for PAdicNumber
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more