Skip to main content

AngleOf

Struct AngleOf 

Source
pub struct AngleOf<T>(/* private fields */);
Expand description

2D Angle, support degree, radian, turn…

Provides conversion to other angle units

Implementations§

Source§

impl<T> AngleOf<T>

Source

pub unsafe fn inner_value(self) -> T

Return the inner value. Unsafe because it expose the inner value, but the unit is not specified and may change

Source

pub const unsafe fn from_inner_value(inner_value: T) -> AngleOf<T>

Create from the inner value. Unsafe because it expose the inner value, but the unit is not specified and may change

Source§

impl<T> AngleOf<T>
where T: Float,

Source

pub const FULL: AngleOf<T>

360°

Source

pub const HALF: AngleOf<T>

180°

Source

pub const FLAT: AngleOf<T>

180°

Source

pub const RIGHT: AngleOf<T>

90°

Source

pub fn from_radian(rad: T) -> AngleOf<T>

Source

pub fn from_degree(degree: T) -> AngleOf<T>

Source

pub fn from_turn(coef: T) -> AngleOf<T>

Source

pub fn radian(self) -> T

Source

pub fn degree(self) -> T

Source

pub fn turn(self) -> T

Source

pub fn normalized_positive(self) -> AngleOf<T>

[0, 2PI[

Source

pub fn normalized(self) -> AngleOf<T>

]PI; PI]

Source

pub fn cos_sin(self) -> (T, T)

(cos(self), sin(self))

Source

pub fn sin_cos(self) -> (T, T)

(sin(self), cos(self))

Source

pub fn cos_cos(self) -> (T, T)

(cos(self), cos(self))

Source

pub fn sin_sin(self) -> (T, T)

(sin(self), sin(self))

Source

pub fn cos(self) -> T

Cosine of the angle.

Source

pub fn cosh(self) -> T

Hyperbolic cosine.

Source

pub fn sin(self) -> T

Sine of the angle.

Source

pub fn sinh(self) -> T

Hyperbolic sine.

Source

pub fn cot(self) -> T

Cotangent (1 / tan(self)).

Source

pub fn tan(self) -> T

Tangent of the angle.

Source

pub fn tanh(self) -> T

Hyperbolic tangent.

Source

pub fn to_vec2_normalized(self) -> Vector<f32, 2>
where T: Into<f32>,

Return a normalized (length = 1) vector with the same angle

Source

pub fn to_vec2(self, length: T) -> Vector<f32, 2>
where T: Into<f32>,

Source

pub fn to_vector2_normalized(self) -> Vector<T, 2>

Return a normalized (length = 1) vector with the same angle

Source

pub fn to_vector2(self, length: T) -> Vector<T, 2>

Source

pub fn inside_range(self, begin: AngleOf<T>, end: AngleOf<T>) -> bool

Trait Implementations§

Source§

impl<T> Abs for AngleOf<T>
where T: Abs<Output = T>,

Source§

type Output = AngleOf<T>

Source§

fn abs(self) -> AngleOf<T>

Absolute value in a component way. Read more
Source§

impl<T> Add for AngleOf<T>
where T: Add<Output = T>,

Source§

type Output = AngleOf<T>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<T> AddAssign for AngleOf<T>
where T: AddAssign,

Source§

fn add_assign(&mut self, rhs: AngleOf<T>)

Performs the += operation. Read more
Source§

impl<T, T2> CastFrom<AngleOf<T2>> for AngleOf<T>
where T: CastFrom<T2>,

Source§

fn cast_from(value: AngleOf<T2>) -> AngleOf<T>

Source§

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

Source§

fn clone(&self) -> AngleOf<T>

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<T> Debug for AngleOf<T>
where T: Float + Debug,

Source§

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

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

impl<T> Default for AngleOf<T>
where T: Default,

Source§

fn default() -> AngleOf<T>

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

impl<'de, T> Deserialize<'de> for AngleOf<T>
where T: Float + Deserialize<'de>,

Available on crate feature serde only.
Source§

fn deserialize<D>( deserializer: D, ) -> Result<AngleOf<T>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

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

impl<T> Display for AngleOf<T>
where T: Float + Display,

Source§

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

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

impl<T> Div<T> for AngleOf<T>
where T: Div<Output = T>,

Source§

type Output = AngleOf<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> DivAssign<T> for AngleOf<T>
where T: DivAssign,

Source§

fn div_assign(&mut self, rhs: T)

Performs the /= operation. Read more
Source§

impl<T> Hash for AngleOf<T>
where T: Hash,

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<T> Infinity for AngleOf<T>
where T: Infinity,

Source§

const INFINITY: AngleOf<T>

Source§

fn is_infinity(&self) -> bool
where Self: PartialEq,

Source§

fn is_not_infinity(&self) -> bool
where Self: PartialEq,

Source§

impl<T> MaxValue for AngleOf<T>
where T: MaxValue,

Source§

const MAX: AngleOf<T>

Source§

fn is_max(&self) -> bool
where Self: PartialEq,

Source§

fn is_not_max(&self) -> bool
where Self: PartialEq,

Source§

impl<T> MinValue for AngleOf<T>
where T: MinValue,

Source§

const MIN: AngleOf<T>

Source§

fn is_min(&self) -> bool
where Self: PartialEq,

Source§

fn is_not_min(&self) -> bool
where Self: PartialEq,

Source§

impl<T> MinusInfinity for AngleOf<T>
where T: MinusInfinity,

Source§

impl<T> Mul<T> for AngleOf<T>
where T: Mul<Output = T>,

Source§

type Output = AngleOf<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> MulAssign<T> for AngleOf<T>
where T: MulAssign,

Source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
Source§

impl<T> NaNValue for AngleOf<T>
where T: NaNValue,

Source§

const NAN: AngleOf<T>

Source§

fn is_nan(&self) -> bool
where Self: PartialEq,

Source§

fn is_not_nan(&self) -> bool
where Self: PartialEq,

Source§

impl<T> Neg for AngleOf<T>
where T: Neg<Output = T>,

Source§

type Output = AngleOf<T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> AngleOf<T>

Performs the unary - operation. Read more
Source§

impl<T> Ord for AngleOf<T>
where T: Ord,

Source§

fn cmp(&self, other: &AngleOf<T>) -> 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<T> PartialEq for AngleOf<T>
where T: PartialEq,

Source§

fn eq(&self, other: &AngleOf<T>) -> 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<T> PartialOrd for AngleOf<T>
where T: PartialOrd,

Source§

fn partial_cmp(&self, other: &AngleOf<T>) -> 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<T> RangeDefault for AngleOf<T>
where T: Float,

Source§

const RANGE_MIN: AngleOf<T> = Self::ZERO

Source§

const RANGE_HALF: AngleOf<T> = Self::FLAT

Useful for stuff like Color::GRAY Read more
Source§

const RANGE_MAX: AngleOf<T> = Self::FULL

Source§

const RANGE: AngleOf<T> = Self::FULL

RANGE_MAX - RANGE_MIN
Source§

fn range() -> Range<Self>

Source§

fn range_inclusive() -> RangeInclusive<Self>

Source§

impl<T> Rem for AngleOf<T>
where T: Rem<Output = T>,

Source§

type Output = AngleOf<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: AngleOf<T>) -> <AngleOf<T> as Rem>::Output

Performs the % operation. Read more
Source§

impl<T> RemAssign for AngleOf<T>
where T: RemAssign,

Source§

fn rem_assign(&mut self, rhs: AngleOf<T>)

Performs the %= operation. Read more
Source§

impl<T> Serialize for AngleOf<T>
where T: Float + Serialize,

Available on crate feature serde only.
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<T> Sub for AngleOf<T>
where T: Sub<Output = T>,

Source§

type Output = AngleOf<T>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<T> SubAssign for AngleOf<T>
where T: SubAssign,

Source§

fn sub_assign(&mut self, rhs: AngleOf<T>)

Performs the -= operation. Read more
Source§

impl<T> Sum for AngleOf<T>
where T: Add<Output = T> + Zero,

Source§

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

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

impl<T> WrappedType<T> for AngleOf<T>

Source§

unsafe fn inner_value(self) -> T

Return the inner value. Unsafe because it expose the inner value, but the unit is not specified and may change
Source§

unsafe fn from_inner_value(inner_value: T) -> AngleOf<T>

Create from the inner value. Unsafe because it expose the inner value, but the unit is not specified and may change
Source§

impl<T> Zero for AngleOf<T>
where T: Zero,

Source§

const ZERO: AngleOf<T>

The absorbing element of the multiplication such that x * X::ZERO = X::ZERO
Source§

fn zero() -> Self

Source§

fn set_zero(&mut self) -> &mut Self

Source§

fn is_zero(&self) -> bool
where Self: PartialEq,

Source§

fn is_non_zero(&self) -> bool
where Self: PartialEq,

Source§

impl<T> Copy for AngleOf<T>
where T: Copy,

Source§

impl<T> Eq for AngleOf<T>
where T: Eq,

Source§

impl<T> StructuralPartialEq for AngleOf<T>

Auto Trait Implementations§

§

impl<T> Freeze for AngleOf<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for AngleOf<T>
where T: RefUnwindSafe,

§

impl<T> Send for AngleOf<T>
where T: Send,

§

impl<T> Sync for AngleOf<T>
where T: Sync,

§

impl<T> Unpin for AngleOf<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for AngleOf<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for AngleOf<T>
where T: UnwindSafe,

Blanket Implementations§

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> 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<S, T> CastInto<T> for S
where T: CastFrom<S>,

Source§

fn cast_into(self) -> T

Source§

impl<S, T> CastRangeInto<T> for S
where T: CastRangeFrom<S>,

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> DefaultExtension for T
where T: Default + PartialEq,

Source§

impl<T> DefaultIsTripleUnderscore for T
where T: Default,

Source§

fn ___() -> T

The Self::default() method. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

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

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

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

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn from_json_bytes(bytes: &[u8]) -> Result<Self, EncodeError>

Source§

fn from_json_with_reader<R>(reader: R) -> Result<Self, EncodeError>
where R: Read,

Source§

fn from_json(json: &str) -> Result<Self, EncodeError>

Source§

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

Source§

fn from_ron_bytes(bytes: &[u8]) -> Result<Self, EncodeError>

Source§

fn from_ron_with_reader<R>(reader: R) -> Result<Self, EncodeError>
where R: Read,

Source§

fn from_ron(ron: &str) -> Result<Self, EncodeError>

Source§

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

Source§

fn from_tmp_bin_bytes(bytes: &[u8]) -> Result<Self, EncodeError>

Source§

fn from_tmp_bin_with_reader<R>(reader: R) -> Result<Self, EncodeError>
where R: Read,

Source§

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

Source§

fn from_xml_bytes(bytes: &[u8]) -> Result<Self, EncodeError>

Source§

fn from_xml_with_reader<R>(reader: R) -> Result<Self, EncodeError>
where R: Read,

Source§

fn from_xml(xml: &str) -> Result<Self, EncodeError>

Source§

impl<T> Has<T> for T
where T: Copy,

Source§

fn retrieve(&self) -> T

Source§

impl<T> HasMut<T> for T

Source§

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

Source§

impl<T> HasRef<T> for T

Source§

fn retrive_ref(&self) -> &T

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> PartialOrdExtension for T
where T: PartialOrd,

Source§

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

Using PartialOrd operator, not component wise
Source§

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

Using PartialOrd operator, not component wise
Source§

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

Using PartialOrd operator, not component wise
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> PositiveOrNegative for T
where T: Zero + PartialOrd,

Source§

impl<I, T> RangeDefaultSampleExtension<I> for T

Source§

fn sample(nb_sample: I) -> <Range<T> as RangeSampleExtension<I>>::Output

Sample using the RangeDefault : Self::RANGE_MIN..Self::MAX
Source§

impl<I, T> RangeDefaultSampleInclusiveExtension<I> for T

Source§

fn sample_inclusive( nb_sample: I, ) -> <RangeInclusive<T> as RangeSampleExtension<I>>::Output

Sample using the RangeDefault : Self::RANGE_MIN..=Self::MAX
Source§

impl<T> RangeDefaultStepExtension for T

Source§

fn step( self, step: <Range<T> as RangeStepExtension>::Item, ) -> <Range<T> as RangeStepExtension>::Output

Step using the RangeDefault : Self::RANGE_MIN..Self::MAX
Source§

impl<T> RangeDefaultStepInclusiveExtension for T

Source§

fn step_inclusive( self, step: <RangeInclusive<T> as RangeStepExtension>::Item, ) -> <RangeInclusive<T> as RangeStepExtension>::Output

Step using the RangeDefault : Self::RANGE_MIN..=Self::MAX
Source§

impl<T> SplatCoord1 for T
where T: Copy,

Source§

fn splat1(self) -> Vector<Self, 1>

Source§

impl<T> SplatCoord2 for T
where T: Copy,

Source§

fn splat2(self) -> Vector<Self, 2>

Source§

impl<T> SplatCoord3 for T
where T: Copy,

Source§

fn splat3(self) -> Vector<Self, 3>

Source§

impl<T> SplatCoord4 for T
where T: Copy,

Source§

fn splat4(self) -> Vector<Self, 4>

Source§

impl<T> ToDebug for T
where T: Debug,

Source§

impl<T> ToJson for T
where T: Serialize,

Source§

fn to_json(&self) -> Result<String, EncodeError>

Source§

fn to_json_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>
where W: Write,

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> ToRon for T
where T: Serialize,

Source§

fn to_ron(&self) -> Result<String, EncodeError>

Source§

fn to_ron_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>
where W: Write,

Source§

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

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> ToTmpBin for T
where T: Serialize,

Source§

fn to_tmp_bin(&self) -> Result<Vec<u8>, EncodeError>

Intended for short-term storage of data in a binary format, such as during data transfer. Read more
Source§

fn to_tmp_bin_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>
where W: Write,

Intended for short-term storage of data in a binary format, such as during data transfer. Read more
Source§

impl<T> ToXml for T
where T: Serialize,

Source§

fn to_xml(&self) -> Result<String, EncodeError>

Source§

fn to_xml_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>
where W: Write,

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<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

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> Additive for T
where T: Add<Output = T> + AddAssign + Sum + Sub<Output = T> + Copy + SubAssign + Zero,

Source§

impl<T> Async for T
where T: Send + Sync + 'static,

Source§

impl<T> AsyncDebug for T
where T: Async + Debug,

Source§

impl<'de, T> CfgDeserialize<'de> for T
where T: Deserialize<'de> + ?Sized,

Source§

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

Source§

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

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,