pub enum SectionKind {
Imports,
Extern,
Config,
Types,
Interfaces,
Impl,
Main,
Functions,
Tests,
}Expand description
The nine parts of a file, in their required order (spec chapter 2, section 2).
Variants§
Imports
imports
Extern
extern
Config
config
Types
types
Interfaces
interfaces
Impl
impl
Main
main: the entry point (spec chapter 2, section 3.7)
Functions
functions
Tests
tests
Implementations§
Source§impl SectionKind
impl SectionKind
Trait Implementations§
Source§impl Clone for SectionKind
impl Clone for SectionKind
impl Copy for SectionKind
Source§impl Debug for SectionKind
impl Debug for SectionKind
impl Eq for SectionKind
Source§impl Hash for SectionKind
impl Hash for SectionKind
Source§impl Ord for SectionKind
impl Ord for SectionKind
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 SectionKind
impl PartialEq for SectionKind
Source§impl PartialOrd for SectionKind
impl PartialOrd for SectionKind
impl StructuralPartialEq for SectionKind
Auto Trait Implementations§
impl Freeze for SectionKind
impl RefUnwindSafe for SectionKind
impl Send for SectionKind
impl Sync for SectionKind
impl Unpin for SectionKind
impl UnsafeUnpin for SectionKind
impl UnwindSafe for SectionKind
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