Struct LineFlags

Source
pub struct LineFlags { /* private fields */ }
Expand description

The various properties of a given collision segment that affect gameplay in non-physics manner, such as whether it is breakable or whether wall clings work on the given segment.

Implementations§

Source§

impl LineFlags

Source

pub const fn new() -> Self

Returns an instance with zero initialized data.

Source§

impl LineFlags

Source

pub const fn into_bytes(self) -> [u8; 4]

Returns the underlying bits.

§Layout

The returned byte array is layed out in the same way as described here.

Source

pub const fn from_bytes(bytes: [u8; 4]) -> Self

Converts the given bytes directly into the bitfield struct.

Source§

impl LineFlags

Source

pub fn length_zero(&self) -> <bool as Specifier>::InOut

Returns the value of length_zero.

Source

pub fn length_zero_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of length_zero.

#Errors

If the returned value contains an invalid bit pattern for length_zero.

Source

pub fn with_length_zero(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of length_zero set to the given value.

#Panics

If the given value is out of bounds for length_zero.

Source

pub fn with_length_zero_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of length_zero set to the given value.

#Errors

If the given value is out of bounds for length_zero.

Source

pub fn set_length_zero(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of length_zero to the given value.

#Panics

If the given value is out of bounds for length_zero.

Source

pub fn set_length_zero_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of length_zero to the given value.

#Errors

If the given value is out of bounds for length_zero.

Source

pub fn pacman_final_ignore(&self) -> <bool as Specifier>::InOut

Returns the value of pacman_final_ignore.

Source

pub fn pacman_final_ignore_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of pacman_final_ignore.

#Errors

If the returned value contains an invalid bit pattern for pacman_final_ignore.

Source

pub fn with_pacman_final_ignore( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of pacman_final_ignore set to the given value.

#Panics

If the given value is out of bounds for pacman_final_ignore.

Source

pub fn with_pacman_final_ignore_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of pacman_final_ignore set to the given value.

#Errors

If the given value is out of bounds for pacman_final_ignore.

Source

pub fn set_pacman_final_ignore(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of pacman_final_ignore to the given value.

#Panics

If the given value is out of bounds for pacman_final_ignore.

Source

pub fn set_pacman_final_ignore_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of pacman_final_ignore to the given value.

#Errors

If the given value is out of bounds for pacman_final_ignore.

Source

pub fn fall(&self) -> <bool as Specifier>::InOut

Returns the value of fall.

Source

pub fn fall_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of fall.

#Errors

If the returned value contains an invalid bit pattern for fall.

Source

pub fn with_fall(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of fall set to the given value.

#Panics

If the given value is out of bounds for fall.

Source

pub fn with_fall_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of fall set to the given value.

#Errors

If the given value is out of bounds for fall.

Source

pub fn set_fall(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of fall to the given value.

#Panics

If the given value is out of bounds for fall.

Source

pub fn set_fall_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of fall to the given value.

#Errors

If the given value is out of bounds for fall.

Source

pub fn ignore_ray_check(&self) -> <bool as Specifier>::InOut

Returns the value of ignore_ray_check.

Source

pub fn ignore_ray_check_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of ignore_ray_check.

#Errors

If the returned value contains an invalid bit pattern for ignore_ray_check.

Source

pub fn with_ignore_ray_check(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of ignore_ray_check set to the given value.

#Panics

If the given value is out of bounds for ignore_ray_check.

Source

pub fn with_ignore_ray_check_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of ignore_ray_check set to the given value.

#Errors

If the given value is out of bounds for ignore_ray_check.

Source

pub fn set_ignore_ray_check(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of ignore_ray_check to the given value.

#Panics

If the given value is out of bounds for ignore_ray_check.

Source

pub fn set_ignore_ray_check_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of ignore_ray_check to the given value.

#Errors

If the given value is out of bounds for ignore_ray_check.

Source

pub fn dive(&self) -> <bool as Specifier>::InOut

Returns the value of dive.

Source

pub fn dive_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of dive.

#Errors

If the returned value contains an invalid bit pattern for dive.

Source

pub fn with_dive(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of dive set to the given value.

#Panics

If the given value is out of bounds for dive.

Source

pub fn with_dive_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of dive set to the given value.

#Errors

If the given value is out of bounds for dive.

Source

pub fn set_dive(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of dive to the given value.

#Panics

If the given value is out of bounds for dive.

Source

pub fn set_dive_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of dive to the given value.

#Errors

If the given value is out of bounds for dive.

Source

pub fn unpaintable(&self) -> <bool as Specifier>::InOut

Returns the value of unpaintable.

Source

pub fn unpaintable_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of unpaintable.

#Errors

If the returned value contains an invalid bit pattern for unpaintable.

Source

pub fn with_unpaintable(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of unpaintable set to the given value.

#Panics

If the given value is out of bounds for unpaintable.

Source

pub fn with_unpaintable_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of unpaintable set to the given value.

#Errors

If the given value is out of bounds for unpaintable.

Source

pub fn set_unpaintable(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of unpaintable to the given value.

#Panics

If the given value is out of bounds for unpaintable.

Source

pub fn set_unpaintable_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of unpaintable to the given value.

#Errors

If the given value is out of bounds for unpaintable.

Source

pub fn item(&self) -> <bool as Specifier>::InOut

Returns the value of item.

Source

pub fn item_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of item.

#Errors

If the returned value contains an invalid bit pattern for item.

Source

pub fn with_item(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of item set to the given value.

#Panics

If the given value is out of bounds for item.

Source

pub fn with_item_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of item set to the given value.

#Errors

If the given value is out of bounds for item.

Source

pub fn set_item(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of item to the given value.

#Panics

If the given value is out of bounds for item.

Source

pub fn set_item_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of item to the given value.

#Errors

If the given value is out of bounds for item.

Source

pub fn ignore_fighter_other(&self) -> <bool as Specifier>::InOut

Returns the value of ignore_fighter_other.

Source

pub fn ignore_fighter_other_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of ignore_fighter_other.

#Errors

If the returned value contains an invalid bit pattern for ignore_fighter_other.

Source

pub fn with_ignore_fighter_other( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of ignore_fighter_other set to the given value.

#Panics

If the given value is out of bounds for ignore_fighter_other.

Source

pub fn with_ignore_fighter_other_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of ignore_fighter_other set to the given value.

#Errors

If the given value is out of bounds for ignore_fighter_other.

Source

pub fn set_ignore_fighter_other(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of ignore_fighter_other to the given value.

#Panics

If the given value is out of bounds for ignore_fighter_other.

Source

pub fn set_ignore_fighter_other_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of ignore_fighter_other to the given value.

#Errors

If the given value is out of bounds for ignore_fighter_other.

Source

pub fn right(&self) -> <bool as Specifier>::InOut

Returns the value of right.

Source

pub fn right_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of right.

#Errors

If the returned value contains an invalid bit pattern for right.

Source

pub fn with_right(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of right set to the given value.

#Panics

If the given value is out of bounds for right.

Source

pub fn with_right_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of right set to the given value.

#Errors

If the given value is out of bounds for right.

Source

pub fn set_right(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of right to the given value.

#Panics

If the given value is out of bounds for right.

Source

pub fn set_right_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of right to the given value.

#Errors

If the given value is out of bounds for right.

Source

pub fn left(&self) -> <bool as Specifier>::InOut

Returns the value of left.

Source

pub fn left_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of left.

#Errors

If the returned value contains an invalid bit pattern for left.

Source

pub fn with_left(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of left set to the given value.

#Panics

If the given value is out of bounds for left.

Source

pub fn with_left_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of left set to the given value.

#Errors

If the given value is out of bounds for left.

Source

pub fn set_left(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of left to the given value.

#Panics

If the given value is out of bounds for left.

Source

pub fn set_left_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of left to the given value.

#Errors

If the given value is out of bounds for left.

Source

pub fn upper(&self) -> <bool as Specifier>::InOut

Returns the value of upper.

Source

pub fn upper_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of upper.

#Errors

If the returned value contains an invalid bit pattern for upper.

Source

pub fn with_upper(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of upper set to the given value.

#Panics

If the given value is out of bounds for upper.

Source

pub fn with_upper_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of upper set to the given value.

#Errors

If the given value is out of bounds for upper.

Source

pub fn set_upper(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of upper to the given value.

#Panics

If the given value is out of bounds for upper.

Source

pub fn set_upper_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of upper to the given value.

#Errors

If the given value is out of bounds for upper.

Source

pub fn under(&self) -> <bool as Specifier>::InOut

Returns the value of under.

Source

pub fn under_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of under.

#Errors

If the returned value contains an invalid bit pattern for under.

Source

pub fn with_under(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of under set to the given value.

#Panics

If the given value is out of bounds for under.

Source

pub fn with_under_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of under set to the given value.

#Errors

If the given value is out of bounds for under.

Source

pub fn set_under(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of under to the given value.

#Panics

If the given value is out of bounds for under.

Source

pub fn set_under_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of under to the given value.

#Errors

If the given value is out of bounds for under.

Source

pub fn not_attach(&self) -> <bool as Specifier>::InOut

Returns the value of not_attach.

Source

pub fn not_attach_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of not_attach.

#Errors

If the returned value contains an invalid bit pattern for not_attach.

Source

pub fn with_not_attach(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of not_attach set to the given value.

#Panics

If the given value is out of bounds for not_attach.

Source

pub fn with_not_attach_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of not_attach set to the given value.

#Errors

If the given value is out of bounds for not_attach.

Source

pub fn set_not_attach(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of not_attach to the given value.

#Panics

If the given value is out of bounds for not_attach.

Source

pub fn set_not_attach_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of not_attach to the given value.

#Errors

If the given value is out of bounds for not_attach.

Source

pub fn throughable(&self) -> <bool as Specifier>::InOut

Returns the value of throughable.

Source

pub fn throughable_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of throughable.

#Errors

If the returned value contains an invalid bit pattern for throughable.

Source

pub fn with_throughable(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of throughable set to the given value.

#Panics

If the given value is out of bounds for throughable.

Source

pub fn with_throughable_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of throughable set to the given value.

#Errors

If the given value is out of bounds for throughable.

Source

pub fn set_throughable(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of throughable to the given value.

#Panics

If the given value is out of bounds for throughable.

Source

pub fn set_throughable_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of throughable to the given value.

#Errors

If the given value is out of bounds for throughable.

Source

pub fn hang_l(&self) -> <bool as Specifier>::InOut

Returns the value of hang_l.

Source

pub fn hang_l_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of hang_l.

#Errors

If the returned value contains an invalid bit pattern for hang_l.

Source

pub fn with_hang_l(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of hang_l set to the given value.

#Panics

If the given value is out of bounds for hang_l.

Source

pub fn with_hang_l_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of hang_l set to the given value.

#Errors

If the given value is out of bounds for hang_l.

Source

pub fn set_hang_l(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of hang_l to the given value.

#Panics

If the given value is out of bounds for hang_l.

Source

pub fn set_hang_l_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of hang_l to the given value.

#Errors

If the given value is out of bounds for hang_l.

Source

pub fn hang_r(&self) -> <bool as Specifier>::InOut

Returns the value of hang_r.

Source

pub fn hang_r_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of hang_r.

#Errors

If the returned value contains an invalid bit pattern for hang_r.

Source

pub fn with_hang_r(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of hang_r set to the given value.

#Panics

If the given value is out of bounds for hang_r.

Source

pub fn with_hang_r_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of hang_r set to the given value.

#Errors

If the given value is out of bounds for hang_r.

Source

pub fn set_hang_r(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of hang_r to the given value.

#Panics

If the given value is out of bounds for hang_r.

Source

pub fn set_hang_r_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of hang_r to the given value.

#Errors

If the given value is out of bounds for hang_r.

Returns the value of ignore_link_from_left.

Returns the value of ignore_link_from_left.

#Errors

If the returned value contains an invalid bit pattern for ignore_link_from_left.

Returns a copy of the bitfield with the value of ignore_link_from_left set to the given value.

#Panics

If the given value is out of bounds for ignore_link_from_left.

Returns a copy of the bitfield with the value of ignore_link_from_left set to the given value.

#Errors

If the given value is out of bounds for ignore_link_from_left.

Sets the value of ignore_link_from_left to the given value.

#Panics

If the given value is out of bounds for ignore_link_from_left.

Sets the value of ignore_link_from_left to the given value.

#Errors

If the given value is out of bounds for ignore_link_from_left.

Source

pub fn cloud(&self) -> <bool as Specifier>::InOut

Returns the value of cloud.

Source

pub fn cloud_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of cloud.

#Errors

If the returned value contains an invalid bit pattern for cloud.

Source

pub fn with_cloud(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of cloud set to the given value.

#Panics

If the given value is out of bounds for cloud.

Source

pub fn with_cloud_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of cloud set to the given value.

#Errors

If the given value is out of bounds for cloud.

Source

pub fn set_cloud(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of cloud to the given value.

#Panics

If the given value is out of bounds for cloud.

Source

pub fn set_cloud_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of cloud to the given value.

#Errors

If the given value is out of bounds for cloud.

Returns the value of ignore_link_from_right.

Returns the value of ignore_link_from_right.

#Errors

If the returned value contains an invalid bit pattern for ignore_link_from_right.

Returns a copy of the bitfield with the value of ignore_link_from_right set to the given value.

#Panics

If the given value is out of bounds for ignore_link_from_right.

Returns a copy of the bitfield with the value of ignore_link_from_right set to the given value.

#Errors

If the given value is out of bounds for ignore_link_from_right.

Sets the value of ignore_link_from_right to the given value.

#Panics

If the given value is out of bounds for ignore_link_from_right.

Sets the value of ignore_link_from_right to the given value.

#Errors

If the given value is out of bounds for ignore_link_from_right.

Returns the value of not_expand_near_search.

Source

pub fn not_expand_near_search_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of not_expand_near_search.

#Errors

If the returned value contains an invalid bit pattern for not_expand_near_search.

Returns a copy of the bitfield with the value of not_expand_near_search set to the given value.

#Panics

If the given value is out of bounds for not_expand_near_search.

Source

pub fn with_not_expand_near_search_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of not_expand_near_search set to the given value.

#Errors

If the given value is out of bounds for not_expand_near_search.

Sets the value of not_expand_near_search to the given value.

#Panics

If the given value is out of bounds for not_expand_near_search.

Source

pub fn set_not_expand_near_search_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of not_expand_near_search to the given value.

#Errors

If the given value is out of bounds for not_expand_near_search.

Source

pub fn ignore(&self) -> <bool as Specifier>::InOut

Returns the value of ignore.

Source

pub fn ignore_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of ignore.

#Errors

If the returned value contains an invalid bit pattern for ignore.

Source

pub fn with_ignore(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of ignore set to the given value.

#Panics

If the given value is out of bounds for ignore.

Source

pub fn with_ignore_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of ignore set to the given value.

#Errors

If the given value is out of bounds for ignore.

Source

pub fn set_ignore(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of ignore to the given value.

#Panics

If the given value is out of bounds for ignore.

Source

pub fn set_ignore_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of ignore to the given value.

#Errors

If the given value is out of bounds for ignore.

Source

pub fn breakable(&self) -> <bool as Specifier>::InOut

Returns the value of breakable.

Source

pub fn breakable_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of breakable.

#Errors

If the returned value contains an invalid bit pattern for breakable.

Source

pub fn with_breakable(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of breakable set to the given value.

#Panics

If the given value is out of bounds for breakable.

Source

pub fn with_breakable_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of breakable set to the given value.

#Errors

If the given value is out of bounds for breakable.

Source

pub fn set_breakable(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of breakable to the given value.

#Panics

If the given value is out of bounds for breakable.

Source

pub fn set_breakable_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of breakable to the given value.

#Errors

If the given value is out of bounds for breakable.

Source

pub fn immediate_relanding_ban(&self) -> <bool as Specifier>::InOut

Returns the value of immediate_relanding_ban.

Source

pub fn immediate_relanding_ban_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of immediate_relanding_ban.

#Errors

If the returned value contains an invalid bit pattern for immediate_relanding_ban.

Source

pub fn with_immediate_relanding_ban( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of immediate_relanding_ban set to the given value.

#Panics

If the given value is out of bounds for immediate_relanding_ban.

Source

pub fn with_immediate_relanding_ban_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of immediate_relanding_ban set to the given value.

#Errors

If the given value is out of bounds for immediate_relanding_ban.

Source

pub fn set_immediate_relanding_ban( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of immediate_relanding_ban to the given value.

#Panics

If the given value is out of bounds for immediate_relanding_ban.

Source

pub fn set_immediate_relanding_ban_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of immediate_relanding_ban to the given value.

#Errors

If the given value is out of bounds for immediate_relanding_ban.

Source

pub fn ignore_line_type1(&self) -> <bool as Specifier>::InOut

Returns the value of ignore_line_type1.

Source

pub fn ignore_line_type1_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of ignore_line_type1.

#Errors

If the returned value contains an invalid bit pattern for ignore_line_type1.

Source

pub fn with_ignore_line_type1(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of ignore_line_type1 set to the given value.

#Panics

If the given value is out of bounds for ignore_line_type1.

Source

pub fn with_ignore_line_type1_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of ignore_line_type1 set to the given value.

#Errors

If the given value is out of bounds for ignore_line_type1.

Source

pub fn set_ignore_line_type1(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of ignore_line_type1 to the given value.

#Panics

If the given value is out of bounds for ignore_line_type1.

Source

pub fn set_ignore_line_type1_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of ignore_line_type1 to the given value.

#Errors

If the given value is out of bounds for ignore_line_type1.

Source

pub fn pickel_block(&self) -> <bool as Specifier>::InOut

Returns the value of pickel_block.

Source

pub fn pickel_block_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of pickel_block.

#Errors

If the returned value contains an invalid bit pattern for pickel_block.

Source

pub fn with_pickel_block(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of pickel_block set to the given value.

#Panics

If the given value is out of bounds for pickel_block.

Source

pub fn with_pickel_block_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of pickel_block set to the given value.

#Errors

If the given value is out of bounds for pickel_block.

Source

pub fn set_pickel_block(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of pickel_block to the given value.

#Panics

If the given value is out of bounds for pickel_block.

Source

pub fn set_pickel_block_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of pickel_block to the given value.

#Errors

If the given value is out of bounds for pickel_block.

Source

pub fn deceleration(&self) -> <bool as Specifier>::InOut

Returns the value of deceleration.

Source

pub fn deceleration_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of deceleration.

#Errors

If the returned value contains an invalid bit pattern for deceleration.

Source

pub fn with_deceleration(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of deceleration set to the given value.

#Panics

If the given value is out of bounds for deceleration.

Source

pub fn with_deceleration_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of deceleration set to the given value.

#Errors

If the given value is out of bounds for deceleration.

Source

pub fn set_deceleration(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of deceleration to the given value.

#Panics

If the given value is out of bounds for deceleration.

Source

pub fn set_deceleration_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of deceleration to the given value.

#Errors

If the given value is out of bounds for deceleration.

Source

pub fn virtual_hit_line_up(&self) -> <bool as Specifier>::InOut

Returns the value of virtual_hit_line_up.

Source

pub fn virtual_hit_line_up_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of virtual_hit_line_up.

#Errors

If the returned value contains an invalid bit pattern for virtual_hit_line_up.

Source

pub fn with_virtual_hit_line_up( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of virtual_hit_line_up set to the given value.

#Panics

If the given value is out of bounds for virtual_hit_line_up.

Source

pub fn with_virtual_hit_line_up_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of virtual_hit_line_up set to the given value.

#Errors

If the given value is out of bounds for virtual_hit_line_up.

Source

pub fn set_virtual_hit_line_up(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of virtual_hit_line_up to the given value.

#Panics

If the given value is out of bounds for virtual_hit_line_up.

Source

pub fn set_virtual_hit_line_up_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of virtual_hit_line_up to the given value.

#Errors

If the given value is out of bounds for virtual_hit_line_up.

Source

pub fn virtual_hit_line_left(&self) -> <bool as Specifier>::InOut

Returns the value of virtual_hit_line_left.

Source

pub fn virtual_hit_line_left_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of virtual_hit_line_left.

#Errors

If the returned value contains an invalid bit pattern for virtual_hit_line_left.

Source

pub fn with_virtual_hit_line_left( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of virtual_hit_line_left set to the given value.

#Panics

If the given value is out of bounds for virtual_hit_line_left.

Source

pub fn with_virtual_hit_line_left_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of virtual_hit_line_left set to the given value.

#Errors

If the given value is out of bounds for virtual_hit_line_left.

Source

pub fn set_virtual_hit_line_left(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of virtual_hit_line_left to the given value.

#Panics

If the given value is out of bounds for virtual_hit_line_left.

Source

pub fn set_virtual_hit_line_left_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of virtual_hit_line_left to the given value.

#Errors

If the given value is out of bounds for virtual_hit_line_left.

Source

pub fn virtual_hit_line_right(&self) -> <bool as Specifier>::InOut

Returns the value of virtual_hit_line_right.

Source

pub fn virtual_hit_line_right_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of virtual_hit_line_right.

#Errors

If the returned value contains an invalid bit pattern for virtual_hit_line_right.

Source

pub fn with_virtual_hit_line_right( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of virtual_hit_line_right set to the given value.

#Panics

If the given value is out of bounds for virtual_hit_line_right.

Source

pub fn with_virtual_hit_line_right_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of virtual_hit_line_right set to the given value.

#Errors

If the given value is out of bounds for virtual_hit_line_right.

Source

pub fn set_virtual_hit_line_right( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of virtual_hit_line_right to the given value.

#Panics

If the given value is out of bounds for virtual_hit_line_right.

Source

pub fn set_virtual_hit_line_right_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of virtual_hit_line_right to the given value.

#Errors

If the given value is out of bounds for virtual_hit_line_right.

Source

pub fn virtual_hit_line_down(&self) -> <bool as Specifier>::InOut

Returns the value of virtual_hit_line_down.

Source

pub fn virtual_hit_line_down_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of virtual_hit_line_down.

#Errors

If the returned value contains an invalid bit pattern for virtual_hit_line_down.

Source

pub fn with_virtual_hit_line_down( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of virtual_hit_line_down set to the given value.

#Panics

If the given value is out of bounds for virtual_hit_line_down.

Source

pub fn with_virtual_hit_line_down_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of virtual_hit_line_down set to the given value.

#Errors

If the given value is out of bounds for virtual_hit_line_down.

Source

pub fn set_virtual_hit_line_down(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of virtual_hit_line_down to the given value.

#Panics

If the given value is out of bounds for virtual_hit_line_down.

Source

pub fn set_virtual_hit_line_down_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of virtual_hit_line_down to the given value.

#Errors

If the given value is out of bounds for virtual_hit_line_down.

Source

pub fn virtual_wall_hit_line(&self) -> <bool as Specifier>::InOut

Returns the value of virtual_wall_hit_line.

Source

pub fn virtual_wall_hit_line_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of virtual_wall_hit_line.

#Errors

If the returned value contains an invalid bit pattern for virtual_wall_hit_line.

Source

pub fn with_virtual_wall_hit_line( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of virtual_wall_hit_line set to the given value.

#Panics

If the given value is out of bounds for virtual_wall_hit_line.

Source

pub fn with_virtual_wall_hit_line_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of virtual_wall_hit_line set to the given value.

#Errors

If the given value is out of bounds for virtual_wall_hit_line.

Source

pub fn set_virtual_wall_hit_line(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of virtual_wall_hit_line to the given value.

#Panics

If the given value is out of bounds for virtual_wall_hit_line.

Source

pub fn set_virtual_wall_hit_line_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of virtual_wall_hit_line to the given value.

#Errors

If the given value is out of bounds for virtual_wall_hit_line.

Source

pub fn ignore_boss(&self) -> <bool as Specifier>::InOut

Returns the value of ignore_boss.

Source

pub fn ignore_boss_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of ignore_boss.

#Errors

If the returned value contains an invalid bit pattern for ignore_boss.

Source

pub fn with_ignore_boss(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of ignore_boss set to the given value.

#Panics

If the given value is out of bounds for ignore_boss.

Source

pub fn with_ignore_boss_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of ignore_boss set to the given value.

#Errors

If the given value is out of bounds for ignore_boss.

Source

pub fn set_ignore_boss(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of ignore_boss to the given value.

#Panics

If the given value is out of bounds for ignore_boss.

Source

pub fn set_ignore_boss_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of ignore_boss to the given value.

#Errors

If the given value is out of bounds for ignore_boss.

Trait Implementations§

Source§

impl BinRead for LineFlags

Source§

type Args = ()

The type used for the args parameter of read_args() and read_options(). Read more
Source§

fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_options: &ReadOptions, __binrw_generated_var_arguments: Self::Args, ) -> BinResult<Self>

Read Self from the reader using the given ReadOptions and arguments.
Source§

fn read<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args: Default,

Read Self from the reader using default arguments.
Source§

fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader using the given arguments.
Source§

fn after_parse<R>( &mut self, _: &mut R, _: &ReadOptions, _: Self::Args, ) -> Result<(), Error>
where R: Read + Seek,

Runs any post-processing steps required to finalize construction of the object.
Source§

impl BinWrite for LineFlags

Source§

type Args = ()

The type of arguments needed to be supplied in order to write this type, usually a tuple. Read more
Source§

fn write_options<W: Write>( &self, writer: &mut W, _: &WriteOptions, _: Self::Args, ) -> Result<(), Error>

Write the type to a writer, given the options on how to write it and the type-specific arguments
Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args: Default,

Write a type to a writer while assuming no arguments are needed.
Source§

fn write_with_args<W>( &self, writer: &mut W, args: Self::Args, ) -> Result<(), Error>
where W: Write + Seek,

Write the type to a writer while providing the default WriteOptions
Source§

impl CheckTotalSizeMultipleOf8 for LineFlags

Source§

type Size = TotalSize<[(); 0]>

Source§

impl Clone for LineFlags

Source§

fn clone(&self) -> LineFlags

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LineFlags

Source§

fn fmt(&self, __bf_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for LineFlags

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.