pub struct InitItem {
pub designators: Vec<Designator>,
pub init: Initializer,
pub range: SourceRange,
}Expand description
One element of a braced initialiser list.
Fields§
§designators: Vec<Designator>Designators written before =, e.g. .x or [3].
init: InitializerThe value.
range: SourceRangeWhere the element was written.
Trait Implementations§
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