pub struct ImportList<'a>(/* private fields */);Implementations§
Source§impl<'a> ImportList<'a>
impl<'a> ImportList<'a>
pub fn new() -> Self
pub fn entries(&'a self) -> &'a Vec<ImportType<'a>>
pub fn entries_mut(&'a mut self) -> &'a mut Vec<ImportType<'a>>
pub fn into_inner(self) -> Vec<ImportType<'a>>
pub fn concatenate(&mut self, other: ImportList<'a>)
pub fn with_entries(entries: Vec<ImportType<'a>>) -> Self
pub fn lookup_by_field(&self, name: &str) -> Option<&ImportType<'_>>
Trait Implementations§
Source§impl<'a> ModulePreset for ImportList<'a>
impl<'a> ModulePreset for ImportList<'a>
fn with_preset(preset: &str) -> Result<Self, ModuleError>where
Self: Sized,
Auto Trait Implementations§
impl<'a> Freeze for ImportList<'a>
impl<'a> RefUnwindSafe for ImportList<'a>
impl<'a> Send for ImportList<'a>
impl<'a> Sync for ImportList<'a>
impl<'a> Unpin for ImportList<'a>
impl<'a> UnwindSafe for ImportList<'a>
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> 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