Type Alias bevy::render::view::Layer

pub type Layer = u8;
Expand description

An identifier for a rendering layer.

Trait Implementations§

1.0.0 · source§

impl Binary for u8

source§

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

Formats the value using the given formatter.
source§

impl BoundedMeasure for u8

source§

fn min() -> u8

source§

fn max() -> u8

source§

fn overflowing_add(self, rhs: u8) -> (u8, bool)

1.0.0 · source§

impl Clone for u8

source§

fn clone(&self) -> u8

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
1.0.0 · source§

impl Debug for u8

source§

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

Formats the value using the given formatter. Read more
1.0.0 · source§

impl Default for u8

source§

fn default() -> u8

Returns the default value of 0

source§

impl<'de> Deserialize<'de> for u8

source§

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

Deserialize this value from the given Serde deserializer. Read more
1.0.0 · source§

impl Display for u8

source§

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

Formats the value using the given formatter. Read more
§

impl From<NonMaxU8> for u8

§

fn from(value: NonMaxU8) -> u8

Converts to this type from the input type.
1.31.0 · source§

impl From<NonZeroU8> for u8

source§

fn from(nonzero: NonZeroU8) -> u8

Converts a NonZeroU8 into an u8

1.28.0 · source§

impl From<bool> for u8

source§

fn from(small: bool) -> u8

Converts a bool to a u8. The resulting value is 0 for false and 1 for true values.

Examples
assert_eq!(u8::from(true), 1);
assert_eq!(u8::from(false), 0);
§

impl FromReflect for u8

§

fn from_reflect(reflect: &(dyn Reflect + 'static)) -> Option<u8>

Constructs a concrete instance of Self from a reflected value.
§

fn take_from_reflect( reflect: Box<dyn Reflect, Global> ) -> Result<Self, Box<dyn Reflect, Global>>

Attempts to downcast the given value to Self using, constructing the value using from_reflect if that fails. Read more
§

impl GetTypeRegistration for u8

source§

impl IndexType for u8

source§

fn new(x: usize) -> u8

source§

fn index(&self) -> usize

source§

fn max() -> u8

source§

impl<'de, E> IntoDeserializer<'de, E> for u8where E: Error,

§

type Deserializer = U8Deserializer<E>

The type of the deserializer being converted into.
source§

fn into_deserializer(self) -> U8Deserializer<E>

Convert this value into a deserializer.
1.42.0 · source§

impl LowerExp for u8

source§

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

Formats the value using the given formatter.
1.0.0 · source§

impl LowerHex for u8

source§

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

Formats the value using the given formatter.
1.0.0 · source§

impl Octal for u8

source§

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

Formats the value using the given formatter.
§

impl Reflect for u8

§

fn get_represented_type_info(&self) -> Option<&'static TypeInfo>

Returns the TypeInfo of the type represented by this value. Read more
§

fn into_any(self: Box<u8, Global>) -> Box<dyn Any, Global>

Returns the value as a Box<dyn Any>.
§

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

Returns the value as a &dyn Any.
§

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

Returns the value as a &mut dyn Any.
§

fn into_reflect(self: Box<u8, Global>) -> Box<dyn Reflect, Global>

Casts this type to a boxed reflected value.
§

fn as_reflect(&self) -> &(dyn Reflect + 'static)

Casts this type to a reflected value.
§

fn as_reflect_mut(&mut self) -> &mut (dyn Reflect + 'static)

Casts this type to a mutable reflected value.
§

fn clone_value(&self) -> Box<dyn Reflect, Global>

Clones the value as a Reflect trait object. Read more
§

fn apply(&mut self, value: &(dyn Reflect + 'static))

Applies a reflected value to this value. Read more
§

fn set( &mut self, value: Box<dyn Reflect, Global> ) -> Result<(), Box<dyn Reflect, Global>>

Performs a type-checked assignment of a reflected value to this value. Read more
§

fn reflect_ref(&self) -> ReflectRef<'_>

Returns an enumeration of “kinds” of type. Read more
§

fn reflect_mut(&mut self) -> ReflectMut<'_>

Returns a mutable enumeration of “kinds” of type. Read more
§

fn reflect_owned(self: Box<u8, Global>) -> ReflectOwned

Returns an owned enumeration of “kinds” of type. Read more
§

fn reflect_hash(&self) -> Option<u64>

Returns a hash of the value (which includes the type). Read more
§

fn reflect_partial_eq(&self, value: &(dyn Reflect + 'static)) -> Option<bool>

Returns a “partial equality” comparison result. Read more
§

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

Debug formatter for the value. Read more
§

fn serializable(&self) -> Option<Serializable<'_>>

Returns a serializable version of the value. Read more
§

fn is_dynamic(&self) -> bool

Indicates whether or not this type is a dynamic type. Read more
§

impl Sample for u8

§

type Signed = i8

When summing two samples of a signal together, it is necessary for both samples to be represented in some signed format. This associated Addition type represents the format to which Self should be converted for optimal Addition performance. Read more
§

type Float = f32

When multiplying two samples of a signal together, it is necessary for both samples to be represented in some signed, floating-point format. This associated Multiplication type represents the format to which Self should be converted for optimal Multiplication performance. Read more
§

const EQUILIBRIUM: u8 = 128u8

The equilibrium value for the wave that this Sample type represents. This is normally the value that is equal distance from both the min and max ranges of the sample. Read more
§

const IDENTITY: Self::Float = <Self::Float as FloatSample>::IDENTITY

The multiplicative identity of the signal. Read more
§

fn to_sample<S>(self) -> Swhere Self: ToSample<S>,

Convert self to any type that implements FromSample<Self>. Read more
§

fn from_sample<S>(s: S) -> Selfwhere Self: FromSample<S>,

Create a Self from any type that implements ToSample<Self>. Read more
§

fn to_signed_sample(self) -> Self::Signed

Converts self to the equivalent Sample in the associated Signed format. Read more
§

fn to_float_sample(self) -> Self::Float

Converts self to the equivalent Sample in the associated Float format. Read more
§

fn add_amp(self, amp: Self::Signed) -> Self

Adds (or “offsets”) the amplitude of the Sample by the given signed amplitude. Read more
§

fn mul_amp(self, amp: Self::Float) -> Self

Multiplies (or “scales”) the amplitude of the Sample by the given float amplitude. Read more
source§

impl Serialize for u8

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
§

impl SparseSetIndex for u8

§

fn sparse_set_index(&self) -> usize

Gets the sparse set index corresponding to this instance.
§

fn get_sparse_set_index(value: usize) -> u8

Creates a new instance of this type with the specified index.
§

impl SrgbColorSpace for u8

§

impl<'a> TryFrom<&'a OwnedValue> for u8

§

type Error = Error

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

fn try_from( v: &'a OwnedValue ) -> Result<u8, <u8 as TryFrom<&'a OwnedValue>>::Error>

Performs the conversion.
§

impl<'a> TryFrom<&'a Value<'a>> for u8

§

type Error = Error

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

fn try_from( value: &'a Value<'_> ) -> Result<u8, <u8 as TryFrom<&'a Value<'a>>>::Error>

Performs the conversion.
§

impl TryFrom<OwnedValue> for u8

§

type Error = Error

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

fn try_from(v: OwnedValue) -> Result<u8, <u8 as TryFrom<OwnedValue>>::Error>

Performs the conversion.
§

impl<'a> TryFrom<Value<'a>> for u8

§

type Error = Error

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

fn try_from(value: Value<'a>) -> Result<u8, <u8 as TryFrom<Value<'a>>>::Error>

Performs the conversion.
1.59.0 · source§

impl TryFrom<char> for u8

Maps a char with code point in U+0000..=U+00FF to a byte in 0x00..=0xFF with same value, failing if the code point is greater than U+00FF.

See impl From<u8> for char for details on the encoding.

source§

fn try_from(c: char) -> Result<u8, <u8 as TryFrom<char>>::Error>

Tries to convert a char into a u8.

Examples
let a = 'ÿ'; // U+00FF
let b = 'Ā'; // U+0100
assert_eq!(u8::try_from(a), Ok(0xFF_u8));
assert!(u8::try_from(b).is_err());
§

type Error = TryFromCharError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i128> for u8

source§

fn try_from(u: i128) -> Result<u8, <u8 as TryFrom<i128>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i16> for u8

source§

fn try_from(u: i16) -> Result<u8, <u8 as TryFrom<i16>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i32> for u8

source§

fn try_from(u: i32) -> Result<u8, <u8 as TryFrom<i32>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i64> for u8

source§

fn try_from(u: i64) -> Result<u8, <u8 as TryFrom<i64>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i8> for u8

source§

fn try_from(u: i8) -> Result<u8, <u8 as TryFrom<i8>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<isize> for u8

source§

fn try_from(u: isize) -> Result<u8, <u8 as TryFrom<isize>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u128> for u8

source§

fn try_from(u: u128) -> Result<u8, <u8 as TryFrom<u128>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u16> for u8

source§

fn try_from(u: u16) -> Result<u8, <u8 as TryFrom<u16>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u32> for u8

source§

fn try_from(u: u32) -> Result<u8, <u8 as TryFrom<u32>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u64> for u8

source§

fn try_from(u: u64) -> Result<u8, <u8 as TryFrom<u64>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<usize> for u8

source§

fn try_from(u: usize) -> Result<u8, <u8 as TryFrom<usize>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

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

impl TypePath for u8

§

fn type_path() -> &'static str

Returns the fully qualified path of the underlying type. Read more
§

fn short_type_path() -> &'static str

Returns a short, pretty-print enabled path to the type. Read more
§

fn type_ident() -> Option<&'static str>

Returns the name of the type, or None if it is anonymous. Read more
§

fn crate_name() -> Option<&'static str>

Returns the name of the crate the type is in, or None if it is anonymous. Read more
§

fn module_path() -> Option<&'static str>

Returns the path to the module the type is in, or None if it is anonymous. Read more
§

impl TypeUuid for u8

§

const TYPE_UUID: Uuid = _

§

impl Typed for u8

§

fn type_info() -> &'static TypeInfo

Returns the compile-time info for the underlying type.
1.42.0 · source§

impl UpperExp for u8

source§

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

Formats the value using the given formatter.
1.0.0 · source§

impl UpperHex for u8

source§

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

Formats the value using the given formatter.
§

impl Value for u8

§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

Visits this value with the given Visitor.
source§

impl Zero for u8

source§

fn zero() -> u8

Return the singleton object which can be used as a sentinel value.
source§

fn is_zero(&self) -> bool

Return true if self is equal to the sentinel value.
§

impl Zeroable for u8

§

fn zeroed() -> Self

§

impl Pod for u8