pub enum SourceUnitKind {
ScriptFile,
FunctionFile,
ClassFile,
PackageFunctionFile,
ClassFolderMethodFile,
ReplSubmission,
NotebookCell,
}Variants§
ScriptFile
FunctionFile
ClassFile
PackageFunctionFile
ClassFolderMethodFile
ReplSubmission
NotebookCell
Trait Implementations§
Source§impl Clone for SourceUnitKind
impl Clone for SourceUnitKind
Source§fn clone(&self) -> SourceUnitKind
fn clone(&self) -> SourceUnitKind
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 SourceUnitKind
impl Debug for SourceUnitKind
Source§impl<'de> Deserialize<'de> for SourceUnitKind
impl<'de> Deserialize<'de> for SourceUnitKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SourceUnitKind
impl PartialEq for SourceUnitKind
Source§fn eq(&self, other: &SourceUnitKind) -> bool
fn eq(&self, other: &SourceUnitKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceUnitKind
impl Serialize for SourceUnitKind
impl StructuralPartialEq for SourceUnitKind
Auto Trait Implementations§
impl Freeze for SourceUnitKind
impl RefUnwindSafe for SourceUnitKind
impl Send for SourceUnitKind
impl Sync for SourceUnitKind
impl Unpin for SourceUnitKind
impl UnsafeUnpin for SourceUnitKind
impl UnwindSafe for SourceUnitKind
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