pub struct UniqueState<T: StateValue>(/* private fields */);Implementations§
Source§impl<T: StateValue> UniqueState<T>
impl<T: StateValue> UniqueState<T>
pub fn new(translator: &Translator) -> Self
Methods from Deref<Target = FlatState<T>>§
pub fn permissions(&self) -> &Permissions
pub fn permissions_mut(&mut self) -> &mut Permissions
pub fn address_space(&self) -> Arc<AddressSpace>
pub fn address_space_ref(&self) -> &AddressSpace
Trait Implementations§
Source§impl<T: StateValue> AsMut<FlatState<T>> for UniqueState<T>
impl<T: StateValue> AsMut<FlatState<T>> for UniqueState<T>
Source§impl<T: StateValue> AsMut<UniqueState<T>> for UniqueState<T>
impl<T: StateValue> AsMut<UniqueState<T>> for UniqueState<T>
Source§impl<T: StateValue> AsRef<FlatState<T>> for UniqueState<T>
impl<T: StateValue> AsRef<FlatState<T>> for UniqueState<T>
Source§impl<T: StateValue> AsRef<UniqueState<T>> for UniqueState<T>
impl<T: StateValue> AsRef<UniqueState<T>> for UniqueState<T>
Source§impl<T: Clone + StateValue> Clone for UniqueState<T>
impl<T: Clone + StateValue> Clone for UniqueState<T>
Source§fn clone(&self) -> UniqueState<T>
fn clone(&self) -> UniqueState<T>
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<T: Debug + StateValue> Debug for UniqueState<T>
impl<T: Debug + StateValue> Debug for UniqueState<T>
Source§impl<T: StateValue> Deref for UniqueState<T>
impl<T: StateValue> Deref for UniqueState<T>
Source§impl<T: StateValue> DerefMut for UniqueState<T>
impl<T: StateValue> DerefMut for UniqueState<T>
Source§impl<T: StateValue> From<UniqueState<T>> for FlatState<T>
impl<T: StateValue> From<UniqueState<T>> for FlatState<T>
Source§fn from(t: UniqueState<T>) -> Self
fn from(t: UniqueState<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Hash + StateValue> Hash for UniqueState<T>
impl<T: Hash + StateValue> Hash for UniqueState<T>
Source§impl<T: PartialEq + StateValue> PartialEq for UniqueState<T>
impl<T: PartialEq + StateValue> PartialEq for UniqueState<T>
Source§impl<V: StateValue> State for UniqueState<V>
impl<V: StateValue> State for UniqueState<V>
Source§impl<V: StateValue> StateOps for UniqueState<V>
impl<V: StateValue> StateOps for UniqueState<V>
type Value = V
fn len(&self) -> usize
fn copy_values<F, T>( &mut self, from: F, to: T, size: usize, ) -> Result<(), Self::Error>
fn get_values<A>( &self, address: A, bytes: &mut [Self::Value], ) -> Result<(), Self::Error>
fn view_values<A>( &self, address: A, size: usize, ) -> Result<&[Self::Value], Self::Error>
fn view_values_mut<A>( &mut self, address: A, size: usize, ) -> Result<&mut [Self::Value], Self::Error>
fn set_values<A>( &mut self, address: A, bytes: &[Self::Value], ) -> Result<(), Self::Error>
fn write<A, O: Order, V: IntoStateValues<Self::Value>>( &mut self, address: A, value: V, ) -> Result<(), Self::Error>
fn read<A, O: Order, V: FromStateValues<Self::Value>>( &self, address: A, size: usize, ) -> Result<V, Self::Error>
impl<T: Eq + StateValue> Eq for UniqueState<T>
impl<T: StateValue> StructuralPartialEq for UniqueState<T>
Auto Trait Implementations§
impl<T> Freeze for UniqueState<T>
impl<T> RefUnwindSafe for UniqueState<T>where
T: RefUnwindSafe,
impl<T> Send for UniqueState<T>where
T: Send,
impl<T> Sync for UniqueState<T>where
T: Sync,
impl<T> Unpin for UniqueState<T>where
T: Unpin,
impl<T> UnwindSafe for UniqueState<T>where
T: UnwindSafe,
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> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreSource§impl<'z, T, U> IntoSpace<'z, T> for Uwhere
T: FromSpace<'z, U>,
impl<'z, T, U> IntoSpace<'z, T> for Uwhere
T: FromSpace<'z, U>,
fn into_space(self, manager: &SpaceManager) -> T
fn into_space_with(self, arena: &'z IRBuilderArena, manager: &SpaceManager) -> T
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.