pub struct BaseValues { /* private fields */ }Expand description
A registry for base value types and functions on them.
Implementations§
Source§impl BaseValues
impl BaseValues
Sourcepub fn register_type<P: BaseValue>(&mut self) -> BaseValueId
pub fn register_type<P: BaseValue>(&mut self) -> BaseValueId
Register the given type P as a base value type in this registry.
Sourcepub fn get_ty<P: BaseValue>(&self) -> BaseValueId
pub fn get_ty<P: BaseValue>(&self) -> BaseValueId
Get the BaseValueId for the given base value type P.
Sourcepub fn get_ty_by_id(&self, id: TypeId) -> BaseValueId
pub fn get_ty_by_id(&self, id: TypeId) -> BaseValueId
Get the BaseValueId for the given base value type id.
Trait Implementations§
Source§impl Clone for BaseValues
impl Clone for BaseValues
Source§fn clone(&self) -> BaseValues
fn clone(&self) -> BaseValues
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for BaseValues
impl Default for BaseValues
Source§fn default() -> BaseValues
fn default() -> BaseValues
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BaseValues
impl !RefUnwindSafe for BaseValues
impl Send for BaseValues
impl Sync for BaseValues
impl Unpin for BaseValues
impl !UnwindSafe for BaseValues
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more