pub enum ParameterType {
Flags,
Normal {
ty: Type,
flag: Option<Flag>,
},
}Expand description
The kind of a single TL parameter.
Variants§
Flags
A flags field (name:#). Its value is computed from the optional
parameters at serialization time, not stored directly.
Normal
A regular typed parameter, optionally guarded by a flag bit.
Trait Implementations§
Source§impl Clone for ParameterType
impl Clone for ParameterType
Source§fn clone(&self) -> ParameterType
fn clone(&self) -> ParameterType
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 ParameterType
impl Debug for ParameterType
Source§impl Display for ParameterType
impl Display for ParameterType
Source§impl FromStr for ParameterType
impl FromStr for ParameterType
Source§impl Hash for ParameterType
impl Hash for ParameterType
Source§impl PartialEq for ParameterType
impl PartialEq for ParameterType
impl Eq for ParameterType
impl StructuralPartialEq for ParameterType
Auto Trait Implementations§
impl Freeze for ParameterType
impl RefUnwindSafe for ParameterType
impl Send for ParameterType
impl Sync for ParameterType
impl Unpin for ParameterType
impl UnsafeUnpin for ParameterType
impl UnwindSafe for ParameterType
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