Skip to main content

F64

Struct F64 

Source
pub struct F64(/* private fields */);
Expand description

A wrapper around f64 that provides additional useful traits, such as Ord.

Implementations§

Source§

impl F64

Source

pub const EPSILON: Self

Source

pub const fn new(float: f64) -> Self

Source

pub const fn into_inner(self) -> f64

Source

pub fn abs(self) -> Self

Trait Implementations§

Source§

impl Add for F64

Source§

type Output = F64

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add for &'a F64

Source§

type Output = F64

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&F64> for F64

Source§

type Output = F64

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Self) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign for F64

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl AddAssign<&F64> for F64

Source§

fn add_assign(&mut self, rhs: &Self)

Performs the += operation. Read more
Source§

impl Archive for F64

Source§

type Archived = ArchivedF64

The archived representation of this type. Read more
Source§

type Resolver = F64Resolver

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.
Source§

unsafe fn resolve( &self, pos: usize, resolver: Self::Resolver, out: *mut Self::Archived, )

Creates the archived version of this value at the given position and writes it to the given output. Read more
Source§

impl Clone for F64

Source§

fn clone(&self) -> F64

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for F64

Source§

impl Debug for F64

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for F64

Source§

fn default() -> F64

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for F64

Source§

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<__D: Fallible + ?Sized> Deserialize<F64, __D> for Archived<F64>

Source§

fn deserialize(&self, deserializer: &mut __D) -> Result<F64, __D::Error>

Deserializes using the given deserializer
Source§

impl<'de, C, AUX> DeserializeWithContext<'de, C, AUX> for F64
where F64: Deserialize<'de>,

Source§

fn deserialize_with_context<D>( deserializer: D, _context: &'de C, ) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Source§

fn deserialize_with_context_aux<D>( deserializer: D, context: &'de C, _aux: &'de Option<AUX>, ) -> Result<Self, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl Display for F64

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Div for F64

Source§

type Output = F64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&F64> for F64

Source§

type Output = F64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&F64> for f64

Source§

type Output = F64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &F64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<F64> for f64

Source§

type Output = F64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: F64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f64> for F64

Source§

type Output = F64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign for F64

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl DivAssign<&F64> for F64

Source§

fn div_assign(&mut self, rhs: &Self)

Performs the /= operation. Read more
Source§

impl Eq for F64

Source§

impl From<F32> for F64

Source§

fn from(float: F32) -> Self

Converts to this type from the input type.
Source§

impl From<F64> for F32

Source§

fn from(float: F64) -> Self

Converts to this type from the input type.
Source§

impl<T> From<T> for F64
where f64: From<T>,

Source§

fn from(x: T) -> Self

Converts to this type from the input type.
Source§

impl FromStr for F64

Source§

type Err = ParseFloatError

The associated error which can be returned from parsing.
Source§

fn from_str(src: &str) -> Result<F64, ParseFloatError>

Parses a string s to return a value of this type. Read more
Source§

impl HasOne for F64

Source§

fn one() -> Self

Source§

impl HasZero for F64

Source§

fn zero() -> Self

Source§

fn is_zero(&self) -> bool

Source§

impl Hash for F64

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IsNone for F64

Source§

type Inner = F64

Source§

fn is_none(&self) -> bool

Source§

fn unwrap_or_self(&self) -> &Self::Inner

Source§

fn from_inner(inner: Self::Inner) -> Self

Source§

fn result_to_field<E>(r: Result<Self, E>) -> Result<Self, E>
where Self: Sized,

If Self is Option<T> an Err is converted as Ok(None). For all other types the error is propagated unchanged.
Source§

impl Mul for F64

Source§

type Output = F64

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul for &'a F64

Source§

type Output = F64

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&F64> for F64

Source§

type Output = F64

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&F64> for f64

Source§

type Output = F64

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &F64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<F64> for f64

Source§

type Output = F64

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: F64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f64> for F64

Source§

type Output = F64

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign for F64

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl MulAssign<&F64> for F64

Source§

fn mul_assign(&mut self, rhs: &Self)

Performs the *= operation. Read more
Source§

impl MulByRef<Present> for F64

Source§

type Output = F64

Source§

fn mul_by_ref(&self, _other: &Present) -> Self::Output

Source§

impl MulByRef<i32> for F64

Source§

type Output = F64

Source§

fn mul_by_ref(&self, w: &i32) -> Self::Output

Source§

impl MulByRef<i64> for F64

Source§

type Output = F64

Source§

fn mul_by_ref(&self, w: &i64) -> Self::Output

Source§

impl MulByRef<isize> for F64

Source§

type Output = F64

Source§

fn mul_by_ref(&self, w: &isize) -> Self::Output

Source§

impl Neg for F64

Source§

type Output = F64

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for &F64

Source§

type Output = F64

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl OptionWeightType for F64

Source§

impl Ord for F64

Source§

fn cmp(&self, other: &F64) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for F64

Source§

fn eq(&self, other: &F64) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<F64> for f64

Source§

fn eq(&self, other: &F64) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<f64> for F64

Source§

fn eq(&self, other: &f64) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for F64

Source§

fn partial_cmp(&self, other: &F64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Product for F64

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<'a> Product<&'a F64> for F64

Source§

fn product<I: Iterator<Item = &'a Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Serialize for F64

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<__S: Fallible + ?Sized> Serialize<__S> for F64
where OrderedFloat<f64>: Serialize<__S>,

Source§

fn serialize(&self, serializer: &mut __S) -> Result<Self::Resolver, __S::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.
Source§

impl<C> SerializeWithContext<C> for F64
where F64: Serialize,

Source§

fn serialize_with_context<S>( &self, serializer: S, _context: &C, ) -> Result<S::Ok, S::Error>
where S: Serializer,

Source§

fn serialize_fields_with_context<S>( &self, serializer: S, context: &C, _fields: &HashSet<String>, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Source§

impl SizeOf for F64

Source§

fn size_of_children(&self, context: &mut Context)

Gets the size of all “children” owned by this value, not including the size of the value itself. Read more
Source§

fn size_of(&self) -> TotalSize

Gets the total size of the current value
Source§

fn size_of_with_context(&self, context: &mut Context)

Adds the size of the current value to the given Context, including both the size of the value itself and all of its children
Source§

impl StructuralPartialEq for F64

Source§

impl Sub for F64

Source§

type Output = F64

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub for &'a F64

Source§

type Output = F64

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&F64> for F64

Source§

type Output = F64

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<f64> for F64

Source§

type Output = F64

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f64) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign for F64

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl SubAssign<&F64> for F64

Source§

fn sub_assign(&mut self, rhs: &Self)

Performs the -= operation. Read more
Source§

impl Sum for F64

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<'a> Sum<&'a F64> for F64

Source§

fn sum<I: Iterator<Item = &'a Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl SupportsRoaring for F64

Source§

fn supports_roaring32(&self) -> bool

Returns true if this key type can be represented in a 32-bit roaring bitmap.
Source§

fn roaring_u32_offset(&self, _min: &Self) -> Option<u32>
where Self: Sized,

Computes the u32 offset of self relative to min. Read more
Source§

fn roaring_u32_offset_dyn(&self, _min: &DynData) -> Option<u32>

Like roaring_u32_offset, but accepts min as a type-erased DynData reference.
Source§

fn roaring_u32_offset_dyn_checked(&self, min: &DynData) -> u32

Like roaring_u32_offset_dyn, but panics when the offset cannot be computed.

Auto Trait Implementations§

§

impl Freeze for F64

§

impl RefUnwindSafe for F64

§

impl Send for F64

§

impl Sync for F64

§

impl Unpin for F64

§

impl UnsafeUnpin for F64

§

impl UnwindSafe for F64

Blanket Implementations§

Source§

impl<T> AddAssignByRef for T
where T: for<'a> AddAssign<&'a T>,

Source§

fn add_assign_by_ref(&mut self, other: &T)

Source§

impl<T> AddByRef for T
where &'a T: for<'a> Add<Output = T>,

Source§

fn add_by_ref(&self, other: &T) -> T

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> ArchiveUnsized for T
where T: Archive,

Source§

type Archived = <T as Archive>::Archived

The archived counterpart of this type. Unlike Archive, it may be unsized. Read more
Source§

type MetadataResolver = ()

The resolver for the metadata of this type. Read more
Source§

unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, )

Creates the archived version of the metadata for this value at the given position and writes it to the given output. Read more
Source§

unsafe fn resolve_unsized( &self, from: usize, to: usize, resolver: Self::MetadataResolver, out: *mut RelPtr<Self::Archived, <isize as Archive>::Archived>, )

Resolves a relative pointer to this value with the given from and to and writes it to the given output. Read more
Source§

impl<T> ArchivedDBData for T
where T: Archive + for<'a> Serialize<DbspSerializer<'a>>, <T as Archive>::Archived: Deserialize<T, Deserializer> + Ord,

Source§

impl<T> AsAny for T
where T: 'static,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CallHasher for T
where T: Hash + ?Sized,

Source§

default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64
where H: Hash + ?Sized, B: BuildHasher,

Source§

impl<T> Clonable for T
where T: Clone + Default,

Source§

unsafe fn raw_clone_to(&self, dst: *mut u8)

Clone self into dst. Read more
Source§

unsafe fn raw_move_to(&mut self, dst: *mut u8)

Move the contents of self into dst, replacing the contents of self with Self::default(). Read more
Source§

unsafe fn raw_clone_from(&mut self, src: *const u8)

Clone src into self. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Comparable for T
where T: Ord + Eq + 'static,

Source§

unsafe fn compare(&self, other: *const u8) -> Ordering

Compare self with other. Read more
Source§

unsafe fn equal(&self, other: *const u8) -> bool

Test if self and other are equal. Read more
Source§

unsafe fn less_than(&self, other: *const u8) -> bool

Returns true iff self < other. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<T> CustomError for T
where T: Display + Debug + Send + Sync + 'static,

Source§

fn as_any(&self) -> &(dyn Any + Send + Sync + 'static)

Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + Send + Sync + 'static)

Source§

fn as_box_any(self: Box<T>) -> Box<dyn Any + Send + Sync>

Source§

impl<T> DBData for T

Source§

impl<T> DBWeight for T
where T: DBData + MonoidValue,

Source§

impl<T> Data for T
where T: DBData,

Source§

fn default_hash(&self) -> u64

Compute a hash of the object using default hasher and seed.
Source§

fn dyn_hash(&self, hasher: &mut dyn Hasher)

Source§

fn as_data(&self) -> &(dyn Data + 'static)

Cast any type that implements this trait to &dyn Data. Read more
Source§

fn as_data_mut(&mut self) -> &mut (dyn Data + 'static)

Cast any type that implements this trait to &mut dyn Data. Read more
Source§

impl<T> Data for T
where T: Clone + 'static,

Source§

impl<T> Deserializable for T

Source§

type ArchivedDeser = <T as Archive>::Archived

Deserialized type.
Source§

impl<T> DeserializableDyn for T
where T: ArchivedDBData,

Source§

unsafe fn deserialize_from_bytes_with( &mut self, bytes: &[u8], pos: usize, deserializer: &mut Deserializer, )

Deserialize self from the given slice and offset. Read more
Source§

unsafe fn deserialize_from_bytes(&mut self, bytes: &[u8], pos: usize)

Deserialize self from the given slice and offset using the default deserializer configuration. Read more
Source§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<V> Erase<dyn Data> for V

Source§

fn erase(&self) -> &(dyn Data + 'static)

Convert a reference to self into a reference to Trait.
Source§

fn erase_mut(&mut self) -> &mut (dyn Data + 'static)

Convert a mutable reference to self into a mutable reference to Trait.
Source§

fn erase_box(self: Box<V>) -> Box<dyn Data>

Convert Box<Self> into Box<Trait>.
Source§

fn erase_archived( archived: &<V as Archive>::Archived, ) -> &<dyn Data as ArchiveTrait>::Archived

Convert a reference to an archived representation of Self into a reference to a trait object of type Trait::Archived.
Source§

impl<V> Erase<dyn Weight> for V

Source§

fn erase(&self) -> &(dyn Weight + 'static)

Convert a reference to self into a reference to Trait.
Source§

fn erase_mut(&mut self) -> &mut (dyn Weight + 'static)

Convert a mutable reference to self into a mutable reference to Trait.
Source§

fn erase_box(self: Box<V>) -> Box<dyn Weight>

Convert Box<Self> into Box<Trait>.
Source§

fn erase_archived( archived: &<V as Archive>::Archived, ) -> &<dyn Weight as ArchiveTrait>::Archived

Convert a reference to an archived representation of Self into a reference to a trait object of type Trait::Archived.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> GroupValue for T
where T: MonoidValue + Neg<Output = T> + NegByRef,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Gets the layout of the type.
Source§

impl<M> Measure for M
where M: Debug + PartialOrd + Add<Output = M> + Default + Clone,

Source§

impl<T> MonoidValue for T

Source§

impl<T> MulByRef for T
where &'a T: for<'a> Mul<Output = T>,

Source§

type Output = T

Source§

fn mul_by_ref(&self, other: &T) -> <T as MulByRef>::Output

Source§

impl<T> NegByRef for T
where &'a T: for<'a> Neg<Output = T>,

Source§

fn neg_by_ref(&self) -> T

Source§

impl<N> NodeTrait for N
where N: Copy + Ord + Hash,

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> RingValue for T
where T: Mul<Output = T> + MulByRef<Output = T> + GroupValue + HasOne,

Source§

impl<T> Rkyv for T
where T: Archive + for<'a> Serialize<DbspSerializer<'a>> + Deserializable,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SemigroupValue for T
where T: Clone + Eq + SizeOf + AddByRef + AddAssignByRef + 'static,

Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

Source§

impl<T> SerializeDyn for T
where T: ArchivedDBData,

Source§

fn serialize( &self, serializer: &mut DbspSerializer<'_>, ) -> Result<usize, <DbspSerializer<'_> as Fallible>::Error>

Source§

impl<T, S> SerializeUnsized<S> for T
where T: Serialize<S>, S: Serializer + ?Sized,

Source§

fn serialize_unsized( &self, serializer: &mut S, ) -> Result<usize, <S as Fallible>::Error>

Writes the object and returns the position of the archived type.
Source§

fn serialize_metadata(&self, _: &mut S) -> Result<(), <S as Fallible>::Error>

Serializes the metadata for the given type.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> Weight for T
where T: DBWeight,

Source§

fn set_zero(&mut self)

Set the weight to zero.
Source§

fn is_zero(&self) -> bool

Check if the weight is zero.
Source§

unsafe fn raw_add(&self, rhs: *const u8, result: *mut u8)

Add the value of rhs to self, store the result in result. Read more
Source§

unsafe fn raw_add_assign(&mut self, rhs: *const u8)

Add the value of rhs to self, store the result in self. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ZRingValue for T
where T: RingValue + Ord,

Source§

fn ge0(&self) -> bool

True if value is greater or equal to zero.
Source§

fn le0(&self) -> bool

True if value is less than or equal to zero.