pub enum ComponentKind {
Sfc,
Mfc,
Class,
}Expand description
The kind of component make:livewire creates by default.
Variants§
Sfc
A view component whose markup and module live in one .livewire file.
Mfc
A view component whose Rust module sits beside a .livewire file.
Class
A component whose module declares its own view. In this port it writes the same files as
Mfc, because a Rust component always has a module.
Implementations§
Trait Implementations§
Source§impl Clone for ComponentKind
impl Clone for ComponentKind
impl Copy for ComponentKind
Source§impl Debug for ComponentKind
impl Debug for ComponentKind
Source§impl Default for ComponentKind
impl Default for ComponentKind
Source§impl Display for ComponentKind
impl Display for ComponentKind
impl Eq for ComponentKind
Source§impl PartialEq for ComponentKind
impl PartialEq for ComponentKind
impl StructuralPartialEq for ComponentKind
Auto Trait Implementations§
impl Forget for ComponentKind
impl Freeze for ComponentKind
impl Move for ComponentKind
impl RefUnwindSafe for ComponentKind
impl Send for ComponentKind
impl Sync for ComponentKind
impl Unpin for ComponentKind
impl UnsafeUnpin for ComponentKind
impl UnwindSafe for ComponentKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.