pub struct EyebrowField { /* private fields */ }Expand description
A bit field.
struct BitField {
eyebrow_type: u5,
eyebrow_color: u3,
eyebrow_scale: u4,
eyebrow_aspect: u3,
padding_3: u1,
}Implementations§
Source§impl EyebrowField
impl EyebrowField
pub fn new( eyebrow_type: u5, eyebrow_color: u3, eyebrow_scale: u4, eyebrow_aspect: u3, ) -> Self
pub fn eyebrow_type(&self) -> u5
pub fn set_eyebrow_type(&mut self, value: u5)
pub fn eyebrow_color(&self) -> u3
pub fn set_eyebrow_color(&mut self, value: u3)
pub fn eyebrow_scale(&self) -> u4
pub fn set_eyebrow_scale(&mut self, value: u4)
pub fn eyebrow_aspect(&self) -> u3
pub fn set_eyebrow_aspect(&mut self, value: u3)
pub fn padding_3(&self) -> u1
Trait Implementations§
Source§impl BinRead for EyebrowField
impl BinRead for EyebrowField
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for EyebrowField
impl BinWrite for EyebrowField
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write<W>(&self, writer: &mut W) -> Result<(), Error>
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer using default arguments. Read moreSource§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming native-endian byte order. Read moreSource§fn write_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer using the given arguments. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Bitsized for EyebrowField
impl Bitsized for EyebrowField
Source§impl Clone for EyebrowField
impl Clone for EyebrowField
Source§fn clone(&self) -> EyebrowField
fn clone(&self) -> EyebrowField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EyebrowField
Source§impl Debug for EyebrowField
impl Debug for EyebrowField
Source§impl From<EyebrowField> for u16
impl From<EyebrowField> for u16
Source§fn from(value: EyebrowField) -> Self
fn from(value: EyebrowField) -> Self
Converts to this type from the input type.
Source§impl From<u16> for EyebrowField
impl From<u16> for EyebrowField
Source§impl PartialEq for EyebrowField
impl PartialEq for EyebrowField
Source§impl ReadEndian for EyebrowField
impl ReadEndian for EyebrowField
Source§const ENDIAN: EndianKind = binrw::meta::EndianKind::None
const ENDIAN: EndianKind = binrw::meta::EndianKind::None
The endianness of the type.
impl StructuralPartialEq for EyebrowField
Source§impl WriteEndian for EyebrowField
impl WriteEndian for EyebrowField
Source§const ENDIAN: EndianKind = binrw::meta::EndianKind::None
const ENDIAN: EndianKind = binrw::meta::EndianKind::None
The endianness of the type.
Auto Trait Implementations§
impl Freeze for EyebrowField
impl RefUnwindSafe for EyebrowField
impl Send for EyebrowField
impl Sync for EyebrowField
impl Unpin for EyebrowField
impl UnsafeUnpin for EyebrowField
impl UnwindSafe for EyebrowField
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