pub struct InitItem {
pub designators: DesignatorList,
pub init: InitId,
pub span: Span,
}Expand description
One element of a braced initializer list.
Fields§
§designators: DesignatorListThe designators before the =, and an empty list when the element just follows the one
before it.
init: InitIdThe initializer for this element, which may itself be a braced list.
span: SpanFrom the first designator to the end of the initializer.
Trait Implementations§
impl Copy for InitItem
impl Eq for InitItem
impl StructuralPartialEq for InitItem
Auto Trait Implementations§
impl Freeze for InitItem
impl RefUnwindSafe for InitItem
impl Send for InitItem
impl Sync for InitItem
impl Unpin for InitItem
impl UnsafeUnpin for InitItem
impl UnwindSafe for InitItem
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