pub struct UseBuilder { /* private fields */ }
Expand description
A type that builds vecs of syn::ItemUse. It takes a Vec of UseItems as input, ensures no conflicting duplicates, groups them, and then emits as Vec (or multiple Vec) of syn::ItemUse
Implementations§
Source§impl UseBuilder
impl UseBuilder
Sourcepub fn into_items(self) -> Result<Vec<ItemUse>, Error>
pub fn into_items(self) -> Result<Vec<ItemUse>, Error>
Consume this builder an emit a Vec of syn::ItemUse
Sourcepub fn into_items_sections(self) -> Result<StdExtCrateUse, Error>
pub fn into_items_sections(self) -> Result<StdExtCrateUse, Error>
Consume this builder and emit three vectors of syn::ItemUse partitioned by crate type: std, external, and intra-crate uses
Trait Implementations§
Source§impl Clone for UseBuilder
impl Clone for UseBuilder
Source§fn clone(&self) -> UseBuilder
fn clone(&self) -> UseBuilder
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 UseBuilder
impl Debug for UseBuilder
Source§impl Default for UseBuilder
impl Default for UseBuilder
Source§fn default() -> UseBuilder
fn default() -> UseBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UseBuilder
impl RefUnwindSafe for UseBuilder
impl !Send for UseBuilder
impl !Sync for UseBuilder
impl Unpin for UseBuilder
impl UnwindSafe for UseBuilder
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