pub struct MilnorProfile {
pub truncated: bool,
pub q_part: u32,
pub p_part: PPart,
}Fields§
§truncated: boolIf true, unspecified p_part entries will be 0. Otherwise they will be infinity.
q_part: u32A bitmask indicating which of the Q_k we want to include (1 = include). Defaults to !0.
This is only relevant at odd primes.
p_part: PPartThe profile function for the Q part.
Implementations§
Source§impl MilnorProfile
impl MilnorProfile
pub fn is_trivial(&self) -> bool
pub fn get_p_part(&self, i: usize) -> PPartEntry
Trait Implementations§
Source§impl Debug for MilnorProfile
impl Debug for MilnorProfile
Source§impl Default for MilnorProfile
impl Default for MilnorProfile
Source§impl<'de> Deserialize<'de> for MilnorProfile
impl<'de> Deserialize<'de> for MilnorProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MilnorProfile
impl PartialEq for MilnorProfile
Source§impl Serialize for MilnorProfile
impl Serialize for MilnorProfile
impl Eq for MilnorProfile
impl StructuralPartialEq for MilnorProfile
Auto Trait Implementations§
impl Freeze for MilnorProfile
impl RefUnwindSafe for MilnorProfile
impl Send for MilnorProfile
impl Sync for MilnorProfile
impl Unpin for MilnorProfile
impl UnwindSafe for MilnorProfile
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more