pub enum BuildTarget {
Webr,
Pyodide,
}Expand description
Which browser runtime a built site targets, and so which language it serves.
An enum, not a string (§1.2): an unknown target is rejected at the CLI parse boundary rather than carried as data. Each target serves exactly one language (§3.4); the build refuses a course whose lessons do not match it (§1.3.1).
Variants§
Webr
webR — runs R in the browser, for R lessons.
Pyodide
Pyodide — runs Python in the browser, for Python lessons.
Implementations§
Trait Implementations§
Source§impl Clone for BuildTarget
impl Clone for BuildTarget
Source§fn clone(&self) -> BuildTarget
fn clone(&self) -> BuildTarget
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 BuildTarget
impl Debug for BuildTarget
Source§impl Display for BuildTarget
impl Display for BuildTarget
Source§impl PartialEq for BuildTarget
impl PartialEq for BuildTarget
impl Copy for BuildTarget
impl Eq for BuildTarget
impl StructuralPartialEq for BuildTarget
Auto Trait Implementations§
impl Freeze for BuildTarget
impl RefUnwindSafe for BuildTarget
impl Send for BuildTarget
impl Sync for BuildTarget
impl Unpin for BuildTarget
impl UnwindSafe for BuildTarget
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.