pub enum Target {
Android,
Ios,
Both,
}Expand description
Target platform for benchmarks.
Specifies which mobile platform(s) to build for or run benchmarks on.
§Example
use mobench_sdk::Target;
let target = Target::Android;
assert_eq!(target.as_str(), "android");
let both = Target::Both;
assert_eq!(both.as_str(), "both");Variants§
Android
Android platform (APK with native .so libraries).
Ios
iOS platform (xcframework with static libraries).
Both
Both Android and iOS platforms.
Implementations§
Source§impl Target
impl Target
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Returns the string representation of the target.
§Returns
"android"forTarget::Android"ios"forTarget::Ios"both"forTarget::Both
Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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