pub type BufferAddress = u64;
Expand description

Integral type used for buffer offsets.

Trait Implementations§

1.0.0 · source§

impl Binary for u64

source§

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

Formats the value using the given formatter.
source§

impl BoundedMeasure for u64

source§

fn min() -> u64

source§

fn max() -> u64

source§

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

1.0.0 · source§

impl Clone for u64

source§

fn clone(&self) -> u64

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 u64

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 u64

source§

fn default() -> u64

Returns the default value of 0

source§

impl<'de> Deserialize<'de> for u64

source§

fn deserialize<D>( deserializer: D ) -> Result<u64, <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 u64

source§

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

Formats the value using the given formatter. Read more
§

impl From<NodeId> for u64

§

fn from(outer: NodeId) -> u64

Converts to this type from the input type.
§

impl From<NonMaxU64> for u64

§

fn from(value: NonMaxU64) -> u64

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

impl From<NonZeroU64> for u64

source§

fn from(nonzero: NonZeroU64) -> u64

Converts a NonZeroU64 into an u64

§

impl From<WindowId> for u64

§

fn from(window_id: WindowId) -> u64

Converts to this type from the input type.
§

impl From<WindowId> for u64

§

fn from(window_id: WindowId) -> u64

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

impl From<bool> for u64

source§

fn from(small: bool) -> u64

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

Examples
assert_eq!(u64::from(true), 1);
assert_eq!(u64::from(false), 0);
1.51.0 · source§

impl From<char> for u64

source§

fn from(c: char) -> u64

Converts a char into a u64.

Examples
use std::mem;

let c = '👤';
let u = u64::from(c);
assert!(8 == mem::size_of_val(&u))
1.5.0 · source§

impl From<u16> for u64

source§

fn from(small: u16) -> u64

Converts u16 to u64 losslessly.

1.5.0 · source§

impl From<u32> for u64

source§

fn from(small: u32) -> u64

Converts u32 to u64 losslessly.

1.5.0 · source§

impl From<u8> for u64

source§

fn from(small: u8) -> u64

Converts u8 to u64 losslessly.

§

impl FromReflect for u64

§

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

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 u64

source§

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

§

type Deserializer = U64Deserializer<E>

The type of the deserializer being converted into.
source§

fn into_deserializer(self) -> U64Deserializer<E>

Convert this value into a deserializer.
1.42.0 · source§

impl LowerExp for u64

source§

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

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

impl LowerHex for u64

source§

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

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

impl Octal for u64

source§

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

Formats the value using the given formatter.
§

impl Reflect for u64

§

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

§

type Signed = i64

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 = f64

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: u64 = 9_223_372_036_854_775_808u64

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 u64

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 u64

§

fn sparse_set_index(&self) -> usize

Gets the sparse set index corresponding to this instance.
§

fn get_sparse_set_index(value: usize) -> u64

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

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

§

type Error = Error

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

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

Performs the conversion.
§

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

§

type Error = Error

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

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

Performs the conversion.
§

impl TryFrom<OwnedValue> for u64

§

type Error = Error

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

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

Performs the conversion.
§

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

§

type Error = Error

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

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

Performs the conversion.
1.34.0 · source§

impl TryFrom<i128> for u64

source§

fn try_from(u: i128) -> Result<u64, <u64 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 u64

source§

fn try_from(u: i16) -> Result<u64, <u64 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 u64

source§

fn try_from(u: i32) -> Result<u64, <u64 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 u64

source§

fn try_from(u: i64) -> Result<u64, <u64 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 u64

source§

fn try_from(u: i8) -> Result<u64, <u64 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 u64

source§

fn try_from(u: isize) -> Result<u64, <u64 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 u64

source§

fn try_from(u: u128) -> Result<u64, <u64 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<usize> for u64

source§

fn try_from(value: usize) -> Result<u64, <u64 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 u64

§

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 u64

§

const TYPE_UUID: Uuid = _

§

impl Typed for u64

§

fn type_info() -> &'static TypeInfo

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

impl UpperExp for u64

source§

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

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

impl UpperHex for u64

source§

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

Formats the value using the given formatter.
§

impl Value for u64

§

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

Visits this value with the given Visitor.
source§

impl Zero for u64

source§

fn zero() -> u64

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 u64

§

fn zeroed() -> Self

§

impl Pod for u64