Enum yarnspinner::compiler::DeclarationSource
source · pub enum DeclarationSource {
External,
File(String),
}
Expand description
The source of a declaration.
§Implementation notes
In the original implementation, DeclarationSource::External
is just a magic string.
Variants§
External
The declaration was generated by the compiler.
File(String)
The name of the file in which the declaration was found.
Trait Implementations§
source§impl Clone for DeclarationSource
impl Clone for DeclarationSource
source§fn clone(&self) -> DeclarationSource
fn clone(&self) -> DeclarationSource
Returns a copy of the value. Read more
1.0.0 · 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 DeclarationSource
impl Debug for DeclarationSource
source§impl Default for DeclarationSource
impl Default for DeclarationSource
source§fn default() -> DeclarationSource
fn default() -> DeclarationSource
Returns the “default value” for a type. Read more
source§impl Display for DeclarationSource
impl Display for DeclarationSource
source§impl<T> From<T> for DeclarationSource
impl<T> From<T> for DeclarationSource
source§fn from(file_name: T) -> DeclarationSource
fn from(file_name: T) -> DeclarationSource
Converts to this type from the input type.
source§impl PartialEq for DeclarationSource
impl PartialEq for DeclarationSource
source§fn eq(&self, other: &DeclarationSource) -> bool
fn eq(&self, other: &DeclarationSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DeclarationSource
impl StructuralPartialEq for DeclarationSource
Auto Trait Implementations§
impl RefUnwindSafe for DeclarationSource
impl Send for DeclarationSource
impl Sync for DeclarationSource
impl Unpin for DeclarationSource
impl UnwindSafe for DeclarationSource
Blanket Implementations§
§impl<T> AnyExt for T
impl<T> AnyExt for T
§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T
behind reference§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T
behind mutable reference§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T
behind Rc
pointer§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T
behind Arc
pointer§fn downcast_box<T>(this: Box<Self>) -> Result<Box<T>, Box<Self>>where
T: Any,
fn downcast_box<T>(this: Box<Self>) -> Result<Box<T>, Box<Self>>where
T: Any,
Attempts to downcast this to
T
behind Box
pointer§fn downcast_move<T>(this: Self) -> Option<T>
fn downcast_move<T>(this: Self) -> Option<T>
Attempts to downcast owned
Self
to T
,
useful only in generic context as a workaround for specializationsource§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