pub enum NamePart {
Symbol(Cow<'static, str>),
Type(TealType),
}
Expand description
The parts that a name consists of
Variants§
Symbol(Cow<'static, str>)
A piece of normal text that is part of the type.
An example could be the function(
part inside function(integer):string
Type(TealType)
A piece of the type that is actually a full type.
An example could be the part integer
part inside of function(integer):string
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for NamePart
impl<'de> Deserialize<'de> for NamePart
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 NamePart
impl PartialEq for NamePart
impl Eq for NamePart
impl StructuralEq for NamePart
impl StructuralPartialEq for NamePart
Auto Trait Implementations§
impl RefUnwindSafe for NamePart
impl Send for NamePart
impl Sync for NamePart
impl Unpin for NamePart
impl UnwindSafe for NamePart
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