pub struct TemplateId(/* private fields */);Expand description
A template registered in a mapping, from
MappingBuilder::template.
§Examples
use lower_lang::{templates, MappingBuilder};
let mut b = MappingBuilder::<u8>::new();
let first = b.template(templates::while_loop())?;
let second = b.template(templates::do_while())?;
assert_eq!((first.index(), second.index()), (0, 1));Implementations§
Trait Implementations§
Source§impl Clone for TemplateId
impl Clone for TemplateId
impl Copy for TemplateId
Source§impl Debug for TemplateId
impl Debug for TemplateId
impl Eq for TemplateId
Source§impl Hash for TemplateId
impl Hash for TemplateId
Source§impl Ord for TemplateId
impl Ord for TemplateId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TemplateId
impl PartialEq for TemplateId
Source§impl PartialOrd for TemplateId
impl PartialOrd for TemplateId
impl StructuralPartialEq for TemplateId
Auto Trait Implementations§
impl Freeze for TemplateId
impl RefUnwindSafe for TemplateId
impl Send for TemplateId
impl Sync for TemplateId
impl Unpin for TemplateId
impl UnsafeUnpin for TemplateId
impl UnwindSafe for TemplateId
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