pub struct EnumValue {
pub enum_value: Option<i32>,
pub repeated_enum_value: Vec<i32>,
}
Fields§
§enum_value: Option<i32>
§repeated_enum_value: Vec<i32>
Implementations§
Source§impl EnumValue
impl EnumValue
Sourcepub fn enum_value(&self) -> Color
pub fn enum_value(&self) -> Color
Returns the enum value of enum_value
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_enum_value(&mut self, value: Color)
pub fn set_enum_value(&mut self, value: Color)
Sets enum_value
to the provided enum value.
Sourcepub fn repeated_enum_value(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<Color>>
pub fn repeated_enum_value( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<Color>>
Returns an iterator which yields the valid enum values contained in repeated_enum_value
.
Sourcepub fn push_repeated_enum_value(&mut self, value: Color)
pub fn push_repeated_enum_value(&mut self, value: Color)
Appends the provided enum value to repeated_enum_value
.
Trait Implementations§
Source§impl Message for EnumValue
impl Message for EnumValue
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl StructuralPartialEq for EnumValue
Auto Trait Implementations§
impl Freeze for EnumValue
impl RefUnwindSafe for EnumValue
impl Send for EnumValue
impl Sync for EnumValue
impl Unpin for EnumValue
impl UnwindSafe for EnumValue
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