pub struct ArrayElementLayout {
pub comments_before: Vec<Comment>,
pub trailing_comment: Option<String>,
pub index: usize,
}Expand description
Layout information for an array element.
Used to preserve comments that appear before array elements when converting from formats like TOML.
Fields§
§comments_before: Vec<Comment>Comments that appear before this element in the source
trailing_comment: Option<String>Trailing comment on the same line as this element
index: usizeThe index of this element in the array (corresponds to NodeArray)
Trait Implementations§
Source§impl Clone for ArrayElementLayout
impl Clone for ArrayElementLayout
Source§fn clone(&self) -> ArrayElementLayout
fn clone(&self) -> ArrayElementLayout
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 Debug for ArrayElementLayout
impl Debug for ArrayElementLayout
Source§impl PartialEq for ArrayElementLayout
impl PartialEq for ArrayElementLayout
impl Eq for ArrayElementLayout
impl StructuralPartialEq for ArrayElementLayout
Auto Trait Implementations§
impl Freeze for ArrayElementLayout
impl RefUnwindSafe for ArrayElementLayout
impl Send for ArrayElementLayout
impl Sync for ArrayElementLayout
impl Unpin for ArrayElementLayout
impl UnwindSafe for ArrayElementLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.