pub enum ElementRef<'a> {
Section(&'a Section),
Variable(&'a Variable),
}Expand description
A typed reference returned by ID lookup. Repeated variable names return the first reference in source order.
Variants§
Trait Implementations§
Source§impl<'a> Clone for ElementRef<'a>
impl<'a> Clone for ElementRef<'a>
Source§fn clone(&self) -> ElementRef<'a>
fn clone(&self) -> ElementRef<'a>
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 moreimpl<'a> Copy for ElementRef<'a>
Source§impl<'a> Debug for ElementRef<'a>
impl<'a> Debug for ElementRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ElementRef<'a>
impl<'a> RefUnwindSafe for ElementRef<'a>
impl<'a> Send for ElementRef<'a>
impl<'a> Sync for ElementRef<'a>
impl<'a> Unpin for ElementRef<'a>
impl<'a> UnsafeUnpin for ElementRef<'a>
impl<'a> UnwindSafe for ElementRef<'a>
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