[−][src]Struct conquer_util::align::Aligned2048
A thin wrapper type with an alignment of at least 2kB.
Fields
aligned: T
The aligned inner value.
Implementations
impl<T> Aligned2048<T>
[src]
pub const fn new(aligned: T) -> Self
[src]
Creates a new aligned value.
pub const fn get(&self) -> &T
[src]
Returns a shared reference to the aligned value.
pub fn get_mut(&mut self) -> &mut T
[src]
Returns a mutable reference to the aligned value.
Trait Implementations
impl<T> AsMut<T> for Aligned2048<T>
[src]
impl<T> AsRef<T> for Aligned2048<T>
[src]
impl<T> Borrow<T> for Aligned2048<T>
[src]
impl<T> BorrowMut<T> for Aligned2048<T>
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T: Clone> Clone for Aligned2048<T>
[src]
pub fn clone(&self) -> Aligned2048<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for Aligned2048<T>
[src]
impl<T: Debug> Debug for Aligned2048<T>
[src]
impl<T: Default> Default for Aligned2048<T>
[src]
pub fn default() -> Aligned2048<T>
[src]
impl<T: Eq> Eq for Aligned2048<T>
[src]
impl<T: Hash> Hash for Aligned2048<T>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Ord> Ord for Aligned2048<T>
[src]
pub fn cmp(&self, other: &Aligned2048<T>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: PartialEq> PartialEq<Aligned2048<T>> for Aligned2048<T>
[src]
pub fn eq(&self, other: &Aligned2048<T>) -> bool
[src]
pub fn ne(&self, other: &Aligned2048<T>) -> bool
[src]
impl<T: PartialOrd> PartialOrd<Aligned2048<T>> for Aligned2048<T>
[src]
pub fn partial_cmp(&self, other: &Aligned2048<T>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Aligned2048<T>) -> bool
[src]
pub fn le(&self, other: &Aligned2048<T>) -> bool
[src]
pub fn gt(&self, other: &Aligned2048<T>) -> bool
[src]
pub fn ge(&self, other: &Aligned2048<T>) -> bool
[src]
impl<T> StructuralEq for Aligned2048<T>
[src]
impl<T> StructuralPartialEq for Aligned2048<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Aligned2048<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Aligned2048<T> where
T: Send,
T: Send,
impl<T> Sync for Aligned2048<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Aligned2048<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Aligned2048<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[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.
pub 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.
pub 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>,