Struct yash_syntax::syntax::Item
source · pub struct Item {
pub and_or: Rc<AndOrList>,
pub async_flag: Option<Location>,
}
Expand description
Element of a List.
Fields§
§and_or: Rc<AndOrList>
Main part of this item.
The and-or list is contained in Rc
to allow executing it
asynchronously without cloning it.
async_flag: Option<Location>
Location of the &
operator for this item, if any.
Trait Implementations§
source§impl Display for Item
impl Display for Item
Allows conversion from Item to String.
By default, the ;
terminator is omitted from the formatted string.
When the alternate flag is specified as in {:#}
, the result is always
terminated by either ;
or &
.
source§impl PartialEq for Item
impl PartialEq for Item
impl Eq for Item
impl StructuralEq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl !RefUnwindSafe for Item
impl !Send for Item
impl !Sync for Item
impl Unpin for Item
impl !UnwindSafe for Item
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