pub struct ImportGroup {
pub prefix: ModulePath,
pub item: Span,
pub list: Span,
pub items: usize,
pub statement: Span,
pub top_level: bool,
}Expand description
The nouns of the plugin contract that appear in the engine’s answers, so an interface needs nothing but this crate. Where a grouped entry sits, so a surgery can rewrite it in place or move it out of the group.
Fields§
§prefix: ModulePathCombined prefix of the enclosing groups (crate::util).
item: SpanThe whole entry, alias or nested list included (parse::Config as Cfg).
list: SpanThe innermost list the entry belongs to, braces included.
items: usizeHow many entries that list has.
statement: SpanThe enclosing statement (pub use crate::util::{…};).
top_level: boolWhether list is the statement’s own list rather than a nested one.
Trait Implementations§
Source§impl Clone for ImportGroup
impl Clone for ImportGroup
Source§fn clone(&self) -> ImportGroup
fn clone(&self) -> ImportGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImportGroup
impl Debug for ImportGroup
Source§impl<'de> Deserialize<'de> for ImportGroup
impl<'de> Deserialize<'de> for ImportGroup
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ImportGroup, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ImportGroup, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ImportGroup
Source§impl PartialEq for ImportGroup
impl PartialEq for ImportGroup
Source§impl Serialize for ImportGroup
impl Serialize for ImportGroup
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ImportGroup
Auto Trait Implementations§
impl Freeze for ImportGroup
impl RefUnwindSafe for ImportGroup
impl Send for ImportGroup
impl Sync for ImportGroup
impl Unpin for ImportGroup
impl UnsafeUnpin for ImportGroup
impl UnwindSafe for ImportGroup
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more