pub type DefaultIx = u32;
Expand description
The default integer type for graph indices.
u32
is the default to reduce the size of the graph’s data and improve
performance in the common case.
Used for node and edge indices in Graph
and StableGraph
, used
for node indices in Csr
.
Trait Implementations§
source§impl BoundedMeasure for u32
impl BoundedMeasure for u32
§impl CreateFrom for u32
impl CreateFrom for u32
fn create_from<B>(reader: &mut Reader<B>) -> u32where B: BufferRef,
source§impl<'de> Deserialize<'de> for u32
impl<'de> Deserialize<'de> for u32
source§fn deserialize<D>(
deserializer: D
) -> Result<u32, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<u32, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
1.31.0 · source§impl From<NonZeroU32> for u32
impl From<NonZeroU32> for u32
source§fn from(nonzero: NonZeroU32) -> u32
fn from(nonzero: NonZeroU32) -> u32
Converts a NonZeroU32
into an u32
§impl FromReflect for u32
impl FromReflect for u32
§fn from_reflect(reflect: &(dyn Reflect + 'static)) -> Option<u32>
fn from_reflect(reflect: &(dyn Reflect + 'static)) -> Option<u32>
Self
from a reflected value.§impl GetTypeRegistration for u32
impl GetTypeRegistration for u32
source§impl<'de, E> IntoDeserializer<'de, E> for u32where
E: Error,
impl<'de, E> IntoDeserializer<'de, E> for u32where E: Error,
§type Deserializer = U32Deserializer<E>
type Deserializer = U32Deserializer<E>
source§fn into_deserializer(self) -> U32Deserializer<E>
fn into_deserializer(self) -> U32Deserializer<E>
§impl Reflect for u32
impl Reflect for u32
§fn get_represented_type_info(&self) -> Option<&'static TypeInfo>
fn get_represented_type_info(&self) -> Option<&'static TypeInfo>
§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut dyn Any
.§fn into_reflect(self: Box<u32, Global>) -> Box<dyn Reflect, Global>
fn into_reflect(self: Box<u32, Global>) -> Box<dyn Reflect, Global>
§fn as_reflect(&self) -> &(dyn Reflect + 'static)
fn as_reflect(&self) -> &(dyn Reflect + 'static)
§fn as_reflect_mut(&mut self) -> &mut (dyn Reflect + 'static)
fn as_reflect_mut(&mut self) -> &mut (dyn Reflect + 'static)
§fn clone_value(&self) -> Box<dyn Reflect, Global>
fn clone_value(&self) -> Box<dyn Reflect, Global>
Reflect
trait object. Read more§fn apply(&mut self, value: &(dyn Reflect + 'static))
fn apply(&mut self, value: &(dyn Reflect + 'static))
§fn set(
&mut self,
value: Box<dyn Reflect, Global>
) -> Result<(), Box<dyn Reflect, Global>>
fn set( &mut self, value: Box<dyn Reflect, Global> ) -> Result<(), Box<dyn Reflect, Global>>
§fn reflect_ref(&self) -> ReflectRef<'_>
fn reflect_ref(&self) -> ReflectRef<'_>
§fn reflect_mut(&mut self) -> ReflectMut<'_>
fn reflect_mut(&mut self) -> ReflectMut<'_>
§fn reflect_owned(self: Box<u32, Global>) -> ReflectOwned
fn reflect_owned(self: Box<u32, Global>) -> ReflectOwned
§fn reflect_hash(&self) -> Option<u64>
fn reflect_hash(&self) -> Option<u64>
§fn reflect_partial_eq(&self, value: &(dyn Reflect + 'static)) -> Option<bool>
fn reflect_partial_eq(&self, value: &(dyn Reflect + 'static)) -> Option<bool>
§fn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>
§fn serializable(&self) -> Option<Serializable<'_>>
fn serializable(&self) -> Option<Serializable<'_>>
§fn is_dynamic(&self) -> bool
fn is_dynamic(&self) -> bool
§impl Sample for u32
impl Sample for u32
§type Signed = i32
type Signed = i32
Addition
type represents the format to
which Self
should be converted for optimal Addition
performance. Read more§type Float = f32
type Float = f32
Multiplication
type
represents the format to which Self
should be converted for optimal Multiplication
performance. Read more§const EQUILIBRIUM: u32 = 2_147_483_648u32
const EQUILIBRIUM: u32 = 2_147_483_648u32
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
const IDENTITY: Self::Float = <Self::Float as FloatSample>::IDENTITY
§fn from_sample<S>(s: S) -> Selfwhere
Self: FromSample<S>,
fn from_sample<S>(s: S) -> Selfwhere Self: FromSample<S>,
§fn to_signed_sample(self) -> Self::Signed
fn to_signed_sample(self) -> Self::Signed
§fn to_float_sample(self) -> Self::Float
fn to_float_sample(self) -> Self::Float
source§impl Serialize for u32
impl Serialize for u32
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
§impl ShaderSize for u32
impl ShaderSize for u32
§const SHADER_SIZE: NonZeroU64 = _
const SHADER_SIZE: NonZeroU64 = _
ShaderType::min_size
)§impl ShaderType for u32
impl ShaderType for u32
§fn min_size() -> NonZeroU64
fn min_size() -> NonZeroU64
§fn size(&self) -> NonZeroU64
fn size(&self) -> NonZeroU64
Self
at runtime Read more§fn assert_uniform_compat()
fn assert_uniform_compat()
Self
meets the requirements of the
uniform address space restrictions on stored values and the
uniform address space layout constraints Read more§impl SparseSetIndex for u32
impl SparseSetIndex for u32
§fn sparse_set_index(&self) -> usize
fn sparse_set_index(&self) -> usize
§fn get_sparse_set_index(value: usize) -> u32
fn get_sparse_set_index(value: usize) -> u32
1.34.0 · source§impl TryFrom<i128> for u32
impl TryFrom<i128> for u32
source§fn try_from(u: i128) -> Result<u32, <u32 as TryFrom<i128>>::Error>
fn try_from(u: i128) -> Result<u32, <u32 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
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<i16> for u32
impl TryFrom<i16> for u32
source§fn try_from(u: i16) -> Result<u32, <u32 as TryFrom<i16>>::Error>
fn try_from(u: i16) -> Result<u32, <u32 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
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<i32> for u32
impl TryFrom<i32> for u32
source§fn try_from(u: i32) -> Result<u32, <u32 as TryFrom<i32>>::Error>
fn try_from(u: i32) -> Result<u32, <u32 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
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<i64> for u32
impl TryFrom<i64> for u32
source§fn try_from(u: i64) -> Result<u32, <u32 as TryFrom<i64>>::Error>
fn try_from(u: i64) -> Result<u32, <u32 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
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<i8> for u32
impl TryFrom<i8> for u32
source§fn try_from(u: i8) -> Result<u32, <u32 as TryFrom<i8>>::Error>
fn try_from(u: i8) -> Result<u32, <u32 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
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<isize> for u32
impl TryFrom<isize> for u32
source§fn try_from(u: isize) -> Result<u32, <u32 as TryFrom<isize>>::Error>
fn try_from(u: isize) -> Result<u32, <u32 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
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<u128> for u32
impl TryFrom<u128> for u32
source§fn try_from(u: u128) -> Result<u32, <u32 as TryFrom<u128>>::Error>
fn try_from(u: u128) -> Result<u32, <u32 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
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<u64> for u32
impl TryFrom<u64> for u32
source§fn try_from(u: u64) -> Result<u32, <u32 as TryFrom<u64>>::Error>
fn try_from(u: u64) -> Result<u32, <u32 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
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<usize> for u32
impl TryFrom<usize> for u32
source§fn try_from(u: usize) -> Result<u32, <u32 as TryFrom<usize>>::Error>
fn try_from(u: usize) -> Result<u32, <u32 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.