Struct yash_syntax::syntax::Item
source · [−]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
sourceimpl 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 &
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more