pub struct TargetInfo {
pub web: bool,
pub native: bool,
pub ios: bool,
pub iphone: bool,
pub ipad: bool,
pub macos: bool,
pub android: bool,
pub windows: bool,
pub linux: bool,
pub mobile: bool,
pub desktop: bool,
}Expand description
Derived target facts exposed to PAXEL and Rust event handlers.
Fields§
§web: boolBrowser-hosted rendering target.
native: boolNative application rendering target.
ios: boolAny iOS-family target, including iPhone and iPad.
iphone: booliPhone-class iOS target.
ipad: booliPadOS / iPad-class iOS target.
macos: boolmacOS target.
android: boolAndroid target.
windows: boolWindows target.
linux: boolLinux target.
mobile: boolAny mobile OS target.
desktop: boolAny desktop OS target.
Implementations§
Source§impl TargetInfo
impl TargetInfo
Sourcepub fn new(platform: Platform, os: OS) -> TargetInfo
pub fn new(platform: Platform, os: OS) -> TargetInfo
Build target facts from the chassis platform and detected OS.
Trait Implementations§
Source§impl Clone for TargetInfo
impl Clone for TargetInfo
Source§fn clone(&self) -> TargetInfo
fn clone(&self) -> TargetInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TargetInfo
Source§impl Debug for TargetInfo
impl Debug for TargetInfo
Source§impl Default for TargetInfo
impl Default for TargetInfo
Source§fn default() -> TargetInfo
fn default() -> TargetInfo
Returns the “default value” for a type. Read more
impl Eq for TargetInfo
Source§impl Interpolatable for TargetInfo
impl Interpolatable for TargetInfo
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl PartialEq for TargetInfo
impl PartialEq for TargetInfo
impl StructuralPartialEq for TargetInfo
Source§impl ToPaxValue for TargetInfo
impl ToPaxValue for TargetInfo
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
Converts this value into a
PaxValue.Source§fn nested_properties(&self) -> Vec<UntypedProperty>
fn nested_properties(&self) -> Vec<UntypedProperty>
Live properties read when snapshotting a compound value for PAXEL.
Adapters observe these as well as the containing property.
Source§fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
Converts against owner-thread graph views, including nested generated
property fields. Requires an entered property graph for shared fields.
Ordinary
Self::to_pax_value reads published value snapshots.Auto Trait Implementations§
impl Freeze for TargetInfo
impl RefUnwindSafe for TargetInfo
impl Send for TargetInfo
impl Sync for TargetInfo
impl Unpin for TargetInfo
impl UnsafeUnpin for TargetInfo
impl UnwindSafe for TargetInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.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
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.