pub struct Inputs { /* private fields */ }Implementations§
Source§impl Inputs
impl Inputs
pub fn new() -> Self
pub fn insert<T>( &mut self, name: impl Into<Cow<'static, str>>, resolved: ResolvedInput<T>, ) -> Option<InputSourceKind>
pub fn get<T: 'static>(&self, name: &str) -> Option<&T>
pub fn get_required<T: 'static>(&self, name: &str) -> Result<&T, MissingInput>
pub fn source_of(&self, name: &str) -> Option<InputSourceKind>
pub fn contains(&self, name: &str) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter_sources(&self) -> impl Iterator<Item = (&str, InputSourceKind)> + '_
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Inputs
impl !UnwindSafe for Inputs
impl Freeze for Inputs
impl Send for Inputs
impl Sync for Inputs
impl Unpin for Inputs
impl UnsafeUnpin for Inputs
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