pub enum Platform {
IOS,
Android,
}Expand description
Represents a choice between one of the supported platforms that Polyhorn apps can be built for.
Variants§
IOS
Represents the iOS operating system that runs on iPhones, iPads etc.
Android
Represents the Android operating system that runs on most non-Apple smartphones.
Trait Implementations§
Source§impl Clap for Platform
impl Clap for Platform
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§impl FromArgMatches for Platform
impl FromArgMatches for Platform
Source§fn from_arg_matches(matches: &ArgMatches) -> Self
fn from_arg_matches(matches: &ArgMatches) -> Self
@TODO @release @docs
Source§impl Subcommand for Platform
impl Subcommand for Platform
Source§fn augment_subcommands<'b>(app: App<'b>) -> App<'b>
fn augment_subcommands<'b>(app: App<'b>) -> App<'b>
@TODO @release @docs
Source§fn from_subcommand<'b>(
name: &'b str,
sub: Option<&'b ArgMatches>,
) -> Option<Self>
fn from_subcommand<'b>( name: &'b str, sub: Option<&'b ArgMatches>, ) -> Option<Self>
@TODO @release @docs
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
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