F32

Struct F32 

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

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

Implementations§

Source§

impl F32

Source

pub const EPSILON: F32

Source

pub const fn new(float: f32) -> F32

Source

pub const fn into_inner(self) -> f32

Source

pub fn abs(self) -> F32

Trait Implementations§

Source§

impl Add<&F32> for F32

Source§

type Output = F32

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &F32) -> <F32 as Add<&F32>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add for &'a F32

Source§

type Output = F32

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a F32) -> <&'a F32 as Add>::Output

Performs the + operation. Read more
Source§

impl Add for F32

Source§

type Output = F32

The resulting type after applying the + operator.
Source§

fn add(self, rhs: F32) -> <F32 as Add>::Output

Performs the + operation. Read more
Source§

impl AddAssign<&F32> for F32

Source§

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

Performs the += operation. Read more
Source§

impl AddAssign for F32

Source§

fn add_assign(&mut self, rhs: F32)

Performs the += operation. Read more
Source§

impl Archive for F32

Source§

type Archived = ArchivedF32

The archived representation of this type. Read more
Source§

type Resolver = F32Resolver

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: <F32 as Archive>::Resolver, out: *mut <F32 as Archive>::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 F32

Source§

fn clone(&self) -> F32

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for F32

Source§

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

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

impl Default for F32

Source§

fn default() -> F32

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

impl<'de> Deserialize<'de> for F32

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<F32, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<__D> Deserialize<F32, __D> for <F32 as Archive>::Archived

Source§

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

Deserializes using the given deserializer
Source§

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

Source§

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

Source§

impl Display for F32

Source§

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

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

impl Div<&F32> for F32

Source§

type Output = F32

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &F32) -> <F32 as Div<&F32>>::Output

Performs the / operation. Read more
Source§

impl Div<f32> for F32

Source§

type Output = F32

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f32) -> <F32 as Div<f32>>::Output

Performs the / operation. Read more
Source§

impl Div for F32

Source§

type Output = F32

The resulting type after applying the / operator.
Source§

fn div(self, rhs: F32) -> <F32 as Div>::Output

Performs the / operation. Read more
Source§

impl DivAssign<&F32> for F32

Source§

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

Performs the /= operation. Read more
Source§

impl DivAssign for F32

Source§

fn div_assign(&mut self, rhs: F32)

Performs the /= operation. Read more
Source§

impl From<F32> for F64

Source§

fn from(float: F32) -> F64

Converts to this type from the input type.
Source§

impl From<F64> for F32

Source§

fn from(float: F64) -> F32

Converts to this type from the input type.
Source§

impl<T> From<T> for F32
where f32: From<T>,

Source§

fn from(x: T) -> F32

Converts to this type from the input type.
Source§

impl FromStr for F32

Source§

type Err = ParseFloatError

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

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

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

impl HasOne for F32

Source§

impl HasZero for F32

Source§

fn zero() -> F32

Source§

fn is_zero(&self) -> bool

Source§

impl Hash for F32

Source§

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

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 Mul<&F32> for F32

Source§

type Output = F32

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &F32) -> <F32 as Mul<&F32>>::Output

Performs the * operation. Read more
Source§

impl Mul<f32> for F32

Source§

type Output = F32

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f32) -> <F32 as Mul<f32>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul for &'a F32

Source§

type Output = F32

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a F32) -> <&'a F32 as Mul>::Output

Performs the * operation. Read more
Source§

impl Mul for F32

Source§

type Output = F32

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: F32) -> <F32 as Mul>::Output

Performs the * operation. Read more
Source§

impl MulAssign<&F32> for F32

Source§

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

Performs the *= operation. Read more
Source§

impl MulAssign for F32

Source§

fn mul_assign(&mut self, rhs: F32)

Performs the *= operation. Read more
Source§

impl MulByRef<Present> for F32

Source§

impl MulByRef<i32> for F32

Source§

impl MulByRef<i64> for F32

Source§

impl MulByRef<isize> for F32

Source§

impl Neg for &F32

Source§

type Output = F32

The resulting type after applying the - operator.
Source§

fn neg(self) -> <&F32 as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for F32

Source§

type Output = F32

The resulting type after applying the - operator.
Source§

fn neg(self) -> <F32 as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Ord for F32

Source§

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

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

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

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

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

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

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

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

impl PartialEq<ArchivedF32> for F32

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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<f32> for F32

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 for F32

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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<ArchivedF32> for F32

Source§

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

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · 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 · 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 · 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 · 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 PartialOrd for F32

Source§

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

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · 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 · 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 · 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 · 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<'a> Product<&'a F32> for F32

Source§

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

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

impl Product for F32

Source§

fn product<I>(iter: I) -> F32
where I: Iterator<Item = F32>,

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

impl<__S> Serialize<__S> for F32
where __S: Fallible + ?Sized, OrderedFloat<f32>: Serialize<__S>,

Source§

fn serialize( &self, serializer: &mut __S, ) -> Result<<F32 as Archive>::Resolver, <__S as Fallible>::Error>

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

impl Serialize for F32

Source§

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

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

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

Source§

fn serialize_with_context<S>( &self, serializer: S, _context: &C, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::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 F32

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 Sub<&F32> for F32

Source§

type Output = F32

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &F32) -> <F32 as Sub<&F32>>::Output

Performs the - operation. Read more
Source§

impl Sub<f32> for F32

Source§

type Output = F32

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f32) -> <F32 as Sub<f32>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub for &'a F32

Source§

type Output = F32

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a F32) -> <&'a F32 as Sub>::Output

Performs the - operation. Read more
Source§

impl Sub for F32

Source§

type Output = F32

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: F32) -> <F32 as Sub>::Output

Performs the - operation. Read more
Source§

impl SubAssign<&F32> for F32

Source§

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

Performs the -= operation. Read more
Source§

impl SubAssign for F32

Source§

fn sub_assign(&mut self, rhs: F32)

Performs the -= operation. Read more
Source§

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

Source§

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

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

impl Sum for F32

Source§

fn sum<I>(iter: I) -> F32
where I: Iterator<Item = F32>,

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

impl Copy for F32

Source§

impl Eq for F32

Source§

impl OptionWeightType for F32

Source§

impl StructuralPartialEq for F32

Auto Trait Implementations§

§

impl Freeze for F32

§

impl RefUnwindSafe for F32

§

impl Send for F32

§

impl Sync for F32

§

impl Unpin for F32

§

impl UnwindSafe for F32

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

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<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> 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<T> CustomError for T
where T: Display + Debug + Send + Sync + 'static,

Source§

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

Source§

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

Source§

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

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> 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(&mut self, bytes: &[u8], pos: usize)

Deserialize self from the given slice and offset. 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> 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<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<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, T> Erase<dyn DataTyped<Type = T>> for V
where V: DataTyped<Type = T> + ArchivedDBData, DeserializeImpl<V, dyn DataTyped<Type = T>>: DeserializeDyn<dyn DataTyped<Type = T>>, T: DBData,

Source§

fn erase(&self) -> &(dyn DataTyped<Type = T> + 'static)

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

fn erase_mut(&mut self) -> &mut (dyn DataTyped<Type = T> + 'static)

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

fn erase_box(self: Box<V>) -> Box<dyn DataTyped<Type = T>>

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

fn erase_archived( archived: &<V as Archive>::Archived, ) -> &<dyn DataTyped<Type = T> 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<V, T> Erase<dyn WeightTyped<Type = T>> for V
where V: WeightTyped<Type = T> + ArchivedDBData, DeserializeImpl<V, dyn WeightTyped<Type = T>>: DeserializeDyn<dyn WeightTyped<Type = T>>, T: DBWeight,

Source§

fn erase(&self) -> &(dyn WeightTyped<Type = T> + 'static)

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

fn erase_mut(&mut self) -> &mut (dyn WeightTyped<Type = T> + 'static)

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

fn erase_box(self: Box<V>) -> Box<dyn WeightTyped<Type = T>>

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

fn erase_archived( archived: &<V as Archive>::Archived, ) -> &<dyn WeightTyped<Type = T> 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
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<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<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: 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: 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> Same for T

Source§

type Output = T

Should always be Self
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§

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> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

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<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

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

impl<T> DBData for T
where T: Default + Clone + Eq + Ord + Hash + SizeOf + Send + Sync + Debug + ArchivedDBData + 'static,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T> MonoidValue for T

Source§

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

Source§

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

Source§

impl<T> Rkyv for T

Source§

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