pub enum ControlFlowKind {
Show 14 variants
If,
Else,
While,
ForLoopOpen,
ForLoopClose,
Match,
MatchArmDefault,
MatchArmCondition,
Break,
Continue,
Return,
Throw,
Try,
Catch,
}Variants§
If
Represents control flow constructs in SkullScript.
edgin checkforifstatements.
Else
Represents control flow constructs in SkullScript.
only in ohioforelsestatements.
While
Represents control flow constructs in SkullScript.
goonforwhileloops.
ForLoopOpen
ForLoopClose
Match
MatchArmDefault
MatchArmCondition
Break
bruh - Breaks out of the current loop
Continue
grind - Continues to the next iteration of the loop
Return
Your return keyword (not sure of the actual keyword from what you provided)
Throw
yeet - Throws an error
Try
chill check
Catch
that l
Implementations§
Source§impl ControlFlowKind
impl ControlFlowKind
pub const fn as_token_repr(&self) -> &'static str
pub const fn from_token_repr(text: &str) -> Option<Self>
Trait Implementations§
Source§impl Clone for ControlFlowKind
impl Clone for ControlFlowKind
impl Copy for ControlFlowKind
Source§impl Debug for ControlFlowKind
impl Debug for ControlFlowKind
impl Eq for ControlFlowKind
Source§impl Hash for ControlFlowKind
impl Hash for ControlFlowKind
Source§impl Ord for ControlFlowKind
impl Ord for ControlFlowKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ControlFlowKind
impl PartialEq for ControlFlowKind
Source§impl PartialOrd for ControlFlowKind
impl PartialOrd for ControlFlowKind
impl StructuralPartialEq for ControlFlowKind
Auto Trait Implementations§
impl Freeze for ControlFlowKind
impl RefUnwindSafe for ControlFlowKind
impl Send for ControlFlowKind
impl Sync for ControlFlowKind
impl Unpin for ControlFlowKind
impl UnsafeUnpin for ControlFlowKind
impl UnwindSafe for ControlFlowKind
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more