[−][src]Struct oxygengine_core::id::ID
Typed Unique Identifier (uuidv4).
Methods
impl<T> ID<T>
[src]
pub fn new() -> ID<T>
[src]
Creates new identifier.
pub fn from_bytes(bytes: [u8; 16]) -> ID<T>
[src]
Creates new identifier from raw bytes.
pub fn uuid(&self) -> Uuid
[src]
Gets underlying UUID object.
Trait Implementations
impl<T> Clone for ID<T> where
T: Clone,
[src]
T: Clone,
impl<T> Copy for ID<T> where
T: Clone,
[src]
T: Clone,
impl<T> Debug for ID<T>
[src]
impl<T> Default for ID<T>
[src]
impl<'de, T> Deserialize<'de> for ID<T>
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<ID<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<ID<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T> Eq for ID<T>
[src]
impl From<ID<()>> for AssetVariant
[src]
impl<T> FromStr for ID<T>
[src]
type Err = String
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ID<T>, <ID<T> as FromStr>::Err>
[src]
impl<T> Hash for ID<T>
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Ord for ID<T>
[src]
fn cmp(&self, other: &ID<T>) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T> PartialEq<ID<T>> for ID<T>
[src]
impl<T> PartialOrd<ID<T>> for ID<T>
[src]
fn partial_cmp(&self, other: &ID<T>) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> Serialize for ID<T>
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<T> ToString for ID<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for ID<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for ID<T> where
T: Send,
T: Send,
impl<T> Sync for ID<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ID<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ID<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> RuleType for T where
T: Eq + Ord + Copy + Debug + Hash,
[src]
T: Eq + Ord + Copy + Debug + Hash,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> TryDefault for T where
T: Default,
[src]
T: Default,
fn try_default() -> Result<T, String>
[src]
fn unwrap_default() -> Self
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,