pub enum AstroFileKind {
Page,
Layout,
Component,
Content,
Endpoint,
Middleware,
Config,
}Expand description
Astro file-kind labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AstroFileKind
impl Clone for AstroFileKind
Source§fn clone(&self) -> AstroFileKind
fn clone(&self) -> AstroFileKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AstroFileKind
impl Debug for AstroFileKind
Source§impl Display for AstroFileKind
impl Display for AstroFileKind
Source§impl FromStr for AstroFileKind
impl FromStr for AstroFileKind
Source§type Err = AstroTextError
type Err = AstroTextError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<AstroFileKind, <AstroFileKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<AstroFileKind, <AstroFileKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for AstroFileKind
impl Hash for AstroFileKind
Source§impl Ord for AstroFileKind
impl Ord for AstroFileKind
Source§fn cmp(&self, other: &AstroFileKind) -> Ordering
fn cmp(&self, other: &AstroFileKind) -> Ordering
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
Source§impl PartialEq for AstroFileKind
impl PartialEq for AstroFileKind
Source§fn eq(&self, other: &AstroFileKind) -> bool
fn eq(&self, other: &AstroFileKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AstroFileKind
impl PartialOrd for AstroFileKind
impl Copy for AstroFileKind
impl Eq for AstroFileKind
impl StructuralPartialEq for AstroFileKind
Auto Trait Implementations§
impl Freeze for AstroFileKind
impl RefUnwindSafe for AstroFileKind
impl Send for AstroFileKind
impl Sync for AstroFileKind
impl Unpin for AstroFileKind
impl UnsafeUnpin for AstroFileKind
impl UnwindSafe for AstroFileKind
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