pub enum TemplateSpan {
Text(Atom),
Type(TypeId),
}Expand description
Template literal span
Variants§
Implementations§
Source§impl TemplateSpan
impl TemplateSpan
Sourcepub const fn type_from_id(type_id: TypeId) -> Self
pub const fn type_from_id(type_id: TypeId) -> Self
Create a type span
Trait Implementations§
Source§impl Clone for TemplateSpan
impl Clone for TemplateSpan
Source§fn clone(&self) -> TemplateSpan
fn clone(&self) -> TemplateSpan
Returns a duplicate 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 TemplateSpan
impl Debug for TemplateSpan
Source§impl Hash for TemplateSpan
impl Hash for TemplateSpan
Source§impl PartialEq for TemplateSpan
impl PartialEq for TemplateSpan
impl Eq for TemplateSpan
impl StructuralPartialEq for TemplateSpan
Auto Trait Implementations§
impl Freeze for TemplateSpan
impl RefUnwindSafe for TemplateSpan
impl Send for TemplateSpan
impl Sync for TemplateSpan
impl Unpin for TemplateSpan
impl UnsafeUnpin for TemplateSpan
impl UnwindSafe for TemplateSpan
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
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§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.