pub struct ReadOnlyParameter<T: ParameterVariant> { /* private fields */ }
Expand description
A parameter that must have a value and cannot be written to This struct has ownership of the declared parameter. Additional parameter declaration will fail while this struct exists and the parameter will be undeclared when it is dropped.
Implementations§
Source§impl<T: ParameterVariant> ReadOnlyParameter<T>
impl<T: ParameterVariant> ReadOnlyParameter<T>
Trait Implementations§
Source§impl<T: ParameterVariant + Debug> Debug for ReadOnlyParameter<T>
impl<T: ParameterVariant + Debug> Debug for ReadOnlyParameter<T>
Source§impl<T: ParameterVariant> Drop for ReadOnlyParameter<T>
impl<T: ParameterVariant> Drop for ReadOnlyParameter<T>
Source§impl<'a, T: ParameterVariant + 'a> TryFrom<ParameterBuilder<'a, T>> for ReadOnlyParameter<T>
impl<'a, T: ParameterVariant + 'a> TryFrom<ParameterBuilder<'a, T>> for ReadOnlyParameter<T>
Source§type Error = DeclarationError
type Error = DeclarationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<T> Freeze for ReadOnlyParameter<T>
impl<T> RefUnwindSafe for ReadOnlyParameter<T>where
T: RefUnwindSafe,
impl<T> Send for ReadOnlyParameter<T>where
T: Send,
impl<T> Sync for ReadOnlyParameter<T>where
T: Sync,
impl<T> Unpin for ReadOnlyParameter<T>where
T: Unpin,
impl<T> UnwindSafe for ReadOnlyParameter<T>where
T: UnwindSafe,
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