Struct ContentFlags

Source
pub struct ContentFlags { /* private fields */ }
Expand description

TACT content flags on the WoW root index.

Reference: WoWDev Wiki

Implementations§

Source§

impl ContentFlags

Source

pub const fn new() -> Self

Returns an instance with zero initialized data.

Source§

impl ContentFlags

Source

pub const fn into_bytes(self) -> [u8; 4]

Returns the underlying bits.

§Layout

The returned byte array is layed out in the same way as described here.

Source

pub const fn from_bytes(bytes: [u8; 4]) -> Self

Converts the given bytes directly into the bitfield struct.

Source§

impl ContentFlags

Source

pub fn high_res_texture(&self) -> <bool as Specifier>::InOut

Returns the value of high_res_texture. Is high-res texture (Cataclysm 4.4.0 beta).

Source

pub fn high_res_texture_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of high_res_texture.

§Errors

If the returned value contains an invalid bit pattern for high_res_texture. Is high-res texture (Cataclysm 4.4.0 beta).

Source

pub fn with_high_res_texture(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of high_res_texture set to the given value.

§Panics

If the given value is out of bounds for high_res_texture. Is high-res texture (Cataclysm 4.4.0 beta).

Source

pub fn with_high_res_texture_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of high_res_texture set to the given value.

§Errors

If the given value is out of bounds for high_res_texture. Is high-res texture (Cataclysm 4.4.0 beta).

Source

pub fn set_high_res_texture(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of high_res_texture to the given value.

§Panics

If the given value is out of bounds for high_res_texture. Is high-res texture (Cataclysm 4.4.0 beta).

Source

pub fn set_high_res_texture_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of high_res_texture to the given value.

§Errors

If the given value is out of bounds for high_res_texture. Is high-res texture (Cataclysm 4.4.0 beta).

Source

pub fn install(&self) -> <bool as Specifier>::InOut

Returns the value of install. File is in install manifest.

Source

pub fn install_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of install.

§Errors

If the returned value contains an invalid bit pattern for install. File is in install manifest.

Source

pub fn with_install(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of install set to the given value.

§Panics

If the given value is out of bounds for install. File is in install manifest.

Source

pub fn with_install_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of install set to the given value.

§Errors

If the given value is out of bounds for install. File is in install manifest.

Source

pub fn set_install(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of install to the given value.

§Panics

If the given value is out of bounds for install. File is in install manifest.

Source

pub fn set_install_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of install to the given value.

§Errors

If the given value is out of bounds for install. File is in install manifest.

Source

pub fn windows(&self) -> <bool as Specifier>::InOut

Returns the value of windows. Non-Windows clients should ignore this file.

Source

pub fn windows_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of windows.

§Errors

If the returned value contains an invalid bit pattern for windows. Non-Windows clients should ignore this file.

Source

pub fn with_windows(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of windows set to the given value.

§Panics

If the given value is out of bounds for windows. Non-Windows clients should ignore this file.

Source

pub fn with_windows_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of windows set to the given value.

§Errors

If the given value is out of bounds for windows. Non-Windows clients should ignore this file.

Source

pub fn set_windows(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of windows to the given value.

§Panics

If the given value is out of bounds for windows. Non-Windows clients should ignore this file.

Source

pub fn set_windows_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of windows to the given value.

§Errors

If the given value is out of bounds for windows. Non-Windows clients should ignore this file.

Source

pub fn macos(&self) -> <bool as Specifier>::InOut

Returns the value of macos. Non-macOS clients should ignore this file.

Source

pub fn macos_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of macos.

§Errors

If the returned value contains an invalid bit pattern for macos. Non-macOS clients should ignore this file.

Source

pub fn with_macos(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of macos set to the given value.

§Panics

If the given value is out of bounds for macos. Non-macOS clients should ignore this file.

Source

pub fn with_macos_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of macos set to the given value.

§Errors

If the given value is out of bounds for macos. Non-macOS clients should ignore this file.

Source

pub fn set_macos(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of macos to the given value.

§Panics

If the given value is out of bounds for macos. Non-macOS clients should ignore this file.

Source

pub fn set_macos_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of macos to the given value.

§Errors

If the given value is out of bounds for macos. Non-macOS clients should ignore this file.

Source

pub fn x86_32(&self) -> <bool as Specifier>::InOut

Returns the value of x86_32. x86_32 binary.

Source

pub fn x86_32_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of x86_32.

§Errors

If the returned value contains an invalid bit pattern for x86_32. x86_32 binary.

Source

pub fn with_x86_32(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of x86_32 set to the given value.

§Panics

If the given value is out of bounds for x86_32. x86_32 binary.

Source

pub fn with_x86_32_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of x86_32 set to the given value.

§Errors

If the given value is out of bounds for x86_32. x86_32 binary.

Source

pub fn set_x86_32(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of x86_32 to the given value.

§Panics

If the given value is out of bounds for x86_32. x86_32 binary.

Source

pub fn set_x86_32_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of x86_32 to the given value.

§Errors

If the given value is out of bounds for x86_32. x86_32 binary.

Source

pub fn x86_64(&self) -> <bool as Specifier>::InOut

Returns the value of x86_64. x86_64 binary.

Source

pub fn x86_64_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of x86_64.

§Errors

If the returned value contains an invalid bit pattern for x86_64. x86_64 binary.

Source

pub fn with_x86_64(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of x86_64 set to the given value.

§Panics

If the given value is out of bounds for x86_64. x86_64 binary.

Source

pub fn with_x86_64_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of x86_64 set to the given value.

§Errors

If the given value is out of bounds for x86_64. x86_64 binary.

Source

pub fn set_x86_64(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of x86_64 to the given value.

§Panics

If the given value is out of bounds for x86_64. x86_64 binary.

Source

pub fn set_x86_64_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of x86_64 to the given value.

§Errors

If the given value is out of bounds for x86_64. x86_64 binary.

Source

pub fn low_violence(&self) -> <bool as Specifier>::InOut

Returns the value of low_violence. Low violence variant.

Source

pub fn low_violence_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of low_violence.

§Errors

If the returned value contains an invalid bit pattern for low_violence. Low violence variant.

Source

pub fn with_low_violence(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of low_violence set to the given value.

§Panics

If the given value is out of bounds for low_violence. Low violence variant.

Source

pub fn with_low_violence_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of low_violence set to the given value.

§Errors

If the given value is out of bounds for low_violence. Low violence variant.

Source

pub fn set_low_violence(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of low_violence to the given value.

§Panics

If the given value is out of bounds for low_violence. Low violence variant.

Source

pub fn set_low_violence_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of low_violence to the given value.

§Errors

If the given value is out of bounds for low_violence. Low violence variant.

Source

pub fn mystery_platform(&self) -> <bool as Specifier>::InOut

Returns the value of mystery_platform. Non-mystery-platform clients should ignore this file.

Source

pub fn mystery_platform_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of mystery_platform.

§Errors

If the returned value contains an invalid bit pattern for mystery_platform. Non-mystery-platform clients should ignore this file.

Source

pub fn with_mystery_platform(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of mystery_platform set to the given value.

§Panics

If the given value is out of bounds for mystery_platform. Non-mystery-platform clients should ignore this file.

Source

pub fn with_mystery_platform_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of mystery_platform set to the given value.

§Errors

If the given value is out of bounds for mystery_platform. Non-mystery-platform clients should ignore this file.

Source

pub fn set_mystery_platform(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of mystery_platform to the given value.

§Panics

If the given value is out of bounds for mystery_platform. Non-mystery-platform clients should ignore this file.

Source

pub fn set_mystery_platform_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of mystery_platform to the given value.

§Errors

If the given value is out of bounds for mystery_platform. Non-mystery-platform clients should ignore this file.

Source

pub fn update_plugin(&self) -> <bool as Specifier>::InOut

Returns the value of update_plugin. Only set for UpdatePlugin.{dll,dylib}

Source

pub fn update_plugin_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of update_plugin.

§Errors

If the returned value contains an invalid bit pattern for update_plugin. Only set for UpdatePlugin.{dll,dylib}

Source

pub fn with_update_plugin(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of update_plugin set to the given value.

§Panics

If the given value is out of bounds for update_plugin. Only set for UpdatePlugin.{dll,dylib}

Source

pub fn with_update_plugin_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of update_plugin set to the given value.

§Errors

If the given value is out of bounds for update_plugin. Only set for UpdatePlugin.{dll,dylib}

Source

pub fn set_update_plugin(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of update_plugin to the given value.

§Panics

If the given value is out of bounds for update_plugin. Only set for UpdatePlugin.{dll,dylib}

Source

pub fn set_update_plugin_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of update_plugin to the given value.

§Errors

If the given value is out of bounds for update_plugin. Only set for UpdatePlugin.{dll,dylib}

Source

pub fn aarch64(&self) -> <bool as Specifier>::InOut

Returns the value of aarch64. aarch64 / ARM64 binary.

Source

pub fn aarch64_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of aarch64.

§Errors

If the returned value contains an invalid bit pattern for aarch64. aarch64 / ARM64 binary.

Source

pub fn with_aarch64(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of aarch64 set to the given value.

§Panics

If the given value is out of bounds for aarch64. aarch64 / ARM64 binary.

Source

pub fn with_aarch64_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of aarch64 set to the given value.

§Errors

If the given value is out of bounds for aarch64. aarch64 / ARM64 binary.

Source

pub fn set_aarch64(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of aarch64 to the given value.

§Panics

If the given value is out of bounds for aarch64. aarch64 / ARM64 binary.

Source

pub fn set_aarch64_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of aarch64 to the given value.

§Errors

If the given value is out of bounds for aarch64. aarch64 / ARM64 binary.

Source

pub fn encrypted(&self) -> <bool as Specifier>::InOut

Returns the value of encrypted.

Source

pub fn encrypted_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of encrypted.

§Errors

If the returned value contains an invalid bit pattern for encrypted.

Source

pub fn with_encrypted(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of encrypted set to the given value.

§Panics

If the given value is out of bounds for encrypted.

Source

pub fn with_encrypted_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of encrypted set to the given value.

§Errors

If the given value is out of bounds for encrypted.

Source

pub fn set_encrypted(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of encrypted to the given value.

§Panics

If the given value is out of bounds for encrypted.

Source

pub fn set_encrypted_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of encrypted to the given value.

§Errors

If the given value is out of bounds for encrypted.

Source

pub fn no_name_hash(&self) -> <bool as Specifier>::InOut

Returns the value of no_name_hash.

Source

pub fn no_name_hash_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of no_name_hash.

§Errors

If the returned value contains an invalid bit pattern for no_name_hash.

Source

pub fn with_no_name_hash(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of no_name_hash set to the given value.

§Panics

If the given value is out of bounds for no_name_hash.

Source

pub fn with_no_name_hash_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of no_name_hash set to the given value.

§Errors

If the given value is out of bounds for no_name_hash.

Source

pub fn set_no_name_hash(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of no_name_hash to the given value.

§Panics

If the given value is out of bounds for no_name_hash.

Source

pub fn set_no_name_hash_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of no_name_hash to the given value.

§Errors

If the given value is out of bounds for no_name_hash.

Source

pub fn uncommon_resolution(&self) -> <bool as Specifier>::InOut

Returns the value of uncommon_resolution. Non-1280px wide cinematics.

Source

pub fn uncommon_resolution_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of uncommon_resolution.

§Errors

If the returned value contains an invalid bit pattern for uncommon_resolution. Non-1280px wide cinematics.

Source

pub fn with_uncommon_resolution( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of uncommon_resolution set to the given value.

§Panics

If the given value is out of bounds for uncommon_resolution. Non-1280px wide cinematics.

Source

pub fn with_uncommon_resolution_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of uncommon_resolution set to the given value.

§Errors

If the given value is out of bounds for uncommon_resolution. Non-1280px wide cinematics.

Source

pub fn set_uncommon_resolution(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of uncommon_resolution to the given value.

§Panics

If the given value is out of bounds for uncommon_resolution. Non-1280px wide cinematics.

Source

pub fn set_uncommon_resolution_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of uncommon_resolution to the given value.

§Errors

If the given value is out of bounds for uncommon_resolution. Non-1280px wide cinematics.

Source

pub fn bundle(&self) -> <bool as Specifier>::InOut

Returns the value of bundle.

Source

pub fn bundle_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of bundle.

§Errors

If the returned value contains an invalid bit pattern for bundle.

Source

pub fn with_bundle(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of bundle set to the given value.

§Panics

If the given value is out of bounds for bundle.

Source

pub fn with_bundle_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of bundle set to the given value.

§Errors

If the given value is out of bounds for bundle.

Source

pub fn set_bundle(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of bundle to the given value.

§Panics

If the given value is out of bounds for bundle.

Source

pub fn set_bundle_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of bundle to the given value.

§Errors

If the given value is out of bounds for bundle.

Source

pub fn no_compression(&self) -> <bool as Specifier>::InOut

Returns the value of no_compression.

Source

pub fn no_compression_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of no_compression.

§Errors

If the returned value contains an invalid bit pattern for no_compression.

Source

pub fn with_no_compression(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of no_compression set to the given value.

§Panics

If the given value is out of bounds for no_compression.

Source

pub fn with_no_compression_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of no_compression set to the given value.

§Errors

If the given value is out of bounds for no_compression.

Source

pub fn set_no_compression(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of no_compression to the given value.

§Panics

If the given value is out of bounds for no_compression.

Source

pub fn set_no_compression_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of no_compression to the given value.

§Errors

If the given value is out of bounds for no_compression.

Trait Implementations§

Source§

impl CheckTotalSizeMultipleOf8 for ContentFlags

Source§

type Size = TotalSize<[(); 0]>

Source§

impl Clone for ContentFlags

Source§

fn clone(&self) -> ContentFlags

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 ContentFlags

Source§

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

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

impl From<ContentFlags> for u32
where [(); 32]: IsU32Compatible,

Source§

fn from(__bf_bitfield: ContentFlags) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for ContentFlags
where [(); 32]: IsU32Compatible,

Source§

fn from(__bf_prim: u32) -> Self

Converts to this type from the input type.
Source§

impl Hash for ContentFlags

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 Ord for ContentFlags

Source§

fn cmp(&self, other: &ContentFlags) -> 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 for ContentFlags

Source§

fn eq(&self, other: &ContentFlags) -> 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 for ContentFlags

Source§

fn partial_cmp(&self, other: &ContentFlags) -> 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 Copy for ContentFlags

Source§

impl Eq for ContentFlags

Source§

impl StructuralPartialEq for ContentFlags

Auto Trait Implementations§

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

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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, 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> 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