pub struct InlineImport<'a> {
pub module: &'a str,
pub field: &'a str,
}Expand description
A listing of a inline (import "foo") statement.
Note that when parsing this type it is somewhat unconventional that it
parses its own surrounding parentheses. This is typically an optional type,
so it’s so far been a bit nicer to have the optionality handled through
Peek rather than Option<T>.
Fields§
§module: &'a str§field: &'a strTrait Implementations§
Source§impl<'a> Clone for InlineImport<'a>
impl<'a> Clone for InlineImport<'a>
Source§fn clone(&self) -> InlineImport<'a>
fn clone(&self) -> InlineImport<'a>
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<'a> Debug for InlineImport<'a>
impl<'a> Debug for InlineImport<'a>
Source§impl<'a> Parse<'a> for InlineImport<'a>
impl<'a> Parse<'a> for InlineImport<'a>
Source§impl Peek for InlineImport<'_>
impl Peek for InlineImport<'_>
impl<'a> Copy for InlineImport<'a>
Auto Trait Implementations§
impl<'a> Freeze for InlineImport<'a>
impl<'a> RefUnwindSafe for InlineImport<'a>
impl<'a> Send for InlineImport<'a>
impl<'a> Sync for InlineImport<'a>
impl<'a> Unpin for InlineImport<'a>
impl<'a> UnwindSafe for InlineImport<'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