Struct rustfmt_nightly::lists::ListItem
source · pub(crate) struct ListItem {
pub(crate) pre_comment: Option<String>,
pub(crate) pre_comment_style: ListItemCommentStyle,
pub(crate) item: Option<String>,
pub(crate) post_comment: Option<String>,
pub(crate) new_lines: bool,
}
Fields
pre_comment: Option<String>
pre_comment_style: ListItemCommentStyle
item: Option<String>
post_comment: Option<String>
new_lines: bool
Implementations
sourceimpl ListItem
impl ListItem
pub(crate) fn empty() -> ListItem
pub(crate) fn inner_as_ref(&self) -> &str
pub(crate) fn is_different_group(&self) -> bool
pub(crate) fn is_multiline(&self) -> bool
pub(crate) fn has_single_line_comment(&self) -> bool
pub(crate) fn has_comment(&self) -> bool
pub(crate) fn from_str<S: Into<String>>(s: S) -> ListItem
fn is_substantial(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ListItem
impl Send for ListItem
impl Sync for ListItem
impl Unpin for ListItem
impl UnwindSafe for ListItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes