pub struct TargetProperties {
pub mma: MmaProperties,
}Expand description
Hacky solution for getting comptime properties into the scope. Allows querying certain target-specific properties at compile time, rather than at runtime. Review on how to better solve this and delegate to the compiler if possible.
Fields§
§mma: MmaPropertiesTrait Implementations§
Source§impl Clone for TargetProperties
impl Clone for TargetProperties
Source§fn clone(&self) -> TargetProperties
fn clone(&self) -> TargetProperties
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 Debug for TargetProperties
impl Debug for TargetProperties
Source§impl Default for TargetProperties
impl Default for TargetProperties
Source§fn default() -> TargetProperties
fn default() -> TargetProperties
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TargetProperties
impl<'de> Deserialize<'de> for TargetProperties
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TargetProperties
impl PartialEq for TargetProperties
Source§impl Serialize for TargetProperties
impl Serialize for TargetProperties
Source§impl TypeHash for TargetProperties
impl TypeHash for TargetProperties
impl Eq for TargetProperties
impl StructuralPartialEq for TargetProperties
Auto Trait Implementations§
impl Freeze for TargetProperties
impl RefUnwindSafe for TargetProperties
impl Send for TargetProperties
impl Sync for TargetProperties
impl Unpin for TargetProperties
impl UnwindSafe for TargetProperties
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<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.