Struct pso2packetlib::protocol::questlist::AvailableQuestType
source · pub struct AvailableQuestType(/* private fields */);Expand description
Available quest types flags.
Implementations§
source§impl AvailableQuestType
impl AvailableQuestType
pub const EXTREME: Self = _
pub const STORY_EP1: Self = _
pub const ARKS: Self = _
pub const LIMITED_TIME: Self = _
pub const EXTREME_DEBUG: Self = _
pub const BLANK1: Self = _
pub const STORY_EP2: Self = _
pub const NET_CAFE: Self = _
pub const WARMING_DEBUG: Self = _
pub const BLANK2: Self = _
pub const ADVANCE: Self = _
pub const EXPEDITION: Self = _
pub const FREE_DEBUG: Self = _
pub const ARKS_DEBUG: Self = _
pub const STORY_DEBUG: Self = _
pub const CHALLENGE: Self = _
pub const URGENT: Self = _
pub const URGENT_DEBUG: Self = _
pub const TIME_ATTACK: Self = _
pub const TIME_DEBUG: Self = _
pub const ARKS_DEBUG2: Self = _
pub const ARKS_DEBUG3: Self = _
pub const ARKS_DEBUG4: Self = _
pub const ARKS_DEBUG5: Self = _
pub const ARKS_DEBUG6: Self = _
pub const ARKS_DEBUG7: Self = _
pub const ARKS_DEBUG8: Self = _
pub const ARKS_DEBUG9: Self = _
pub const ARKS_DEBUG10: Self = _
pub const BLANK3: Self = _
pub const STORY_EP3: Self = _
pub const RECOMMENDED: Self = _
pub const ULTIMATE: Self = _
pub const ULTIMATE_DEBUG: Self = _
pub const AGP: Self = _
pub const BONUS: Self = _
pub const UNK1: Self = _
pub const STANDARD_TRAINING: Self = _
pub const HUNTER_TRAINING: Self = _
pub const RANGER_TRAINING: Self = _
pub const FORCE_TRAINING: Self = _
pub const FIGHTER_TRAINING: Self = _
pub const GUNNER_TRAINING: Self = _
pub const TECHTER_TRAINING: Self = _
pub const BRAVER_TRAINING: Self = _
pub const BOUNCER_TRAINING: Self = _
pub const SUMMONER_TRAINING: Self = _
pub const AUTO_ACCEPT: Self = _
pub const RIDROID: Self = _
pub const NET_CAFE_AGP: Self = _
pub const BATTLE_BROKEN: Self = _
pub const BUSTER_DEBUG: Self = _
pub const POKA12: Self = _
pub const UNK2: Self = _
pub const UNK3: Self = _
pub const BUSTER: Self = _
pub const HERO_TRAINING: Self = _
pub const AMPLIFIED: Self = _
pub const UNK4: Self = _
pub const UNK5: Self = _
pub const DARK_BLAST_TRAINING: Self = _
pub const ENDLESS: Self = _
pub const UNK6: Self = _
pub const BLANK4: Self = _
pub const PHANTOM_TRAINING: Self = _
pub const AIS_TRAINING: Self = _
pub const UNK7: Self = _
pub const DAMAGE_CALC: Self = _
pub const ETOILE_TRAINING: Self = _
pub const DIVIDE: Self = _
pub const STARS1: Self = _
pub const STARS2: Self = _
pub const STARS3: Self = _
pub const STARS4: Self = _
pub const STARS5: Self = _
pub const STARS6: Self = _
pub const UNK8: Self = _
source§impl AvailableQuestType
impl AvailableQuestType
sourcepub const fn bits(&self) -> u128
pub const fn bits(&self) -> u128
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
sourcepub const fn from_bits(bits: u128) -> Option<Self>
pub const fn from_bits(bits: u128) -> Option<Self>
Convert from a bits value.
This method will return None if any unknown bits are set.
sourcepub const fn from_bits_truncate(bits: u128) -> Self
pub const fn from_bits_truncate(bits: u128) -> Self
Convert from a bits value, unsetting any unknown bits.
sourcepub const fn from_bits_retain(bits: u128) -> Self
pub const fn from_bits_retain(bits: u128) -> Self
Convert from a bits value exactly.
sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
sourcepub fn remove(&mut self, other: Self)
pub fn remove(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
sourcepub fn toggle(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
The bitwise exclusive-or (^) of the bits in two flags values.
sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Call insert when value is true or remove when value is false.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
The bitwise and (&) of the bits in two flags values.
sourcepub const fn union(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
The bitwise or (|) of the bits in two flags values.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
The bitwise exclusive-or (^) of the bits in two flags values.
sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
The bitwise negation (!) of the bits in a flags value, truncating the result.
source§impl AvailableQuestType
impl AvailableQuestType
sourcepub const fn iter(&self) -> Iter<AvailableQuestType>
pub const fn iter(&self) -> Iter<AvailableQuestType>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
sourcepub const fn iter_names(&self) -> IterNames<AvailableQuestType>
pub const fn iter_names(&self) -> IterNames<AvailableQuestType>
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
source§impl Binary for AvailableQuestType
impl Binary for AvailableQuestType
source§impl BitAnd for AvailableQuestType
impl BitAnd for AvailableQuestType
source§impl BitAndAssign for AvailableQuestType
impl BitAndAssign for AvailableQuestType
source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
The bitwise and (&) of the bits in two flags values.
source§impl BitOr for AvailableQuestType
impl BitOr for AvailableQuestType
source§fn bitor(self, other: AvailableQuestType) -> Self
fn bitor(self, other: AvailableQuestType) -> Self
The bitwise or (|) of the bits in two flags values.
§type Output = AvailableQuestType
type Output = AvailableQuestType
| operator.source§impl BitOrAssign for AvailableQuestType
impl BitOrAssign for AvailableQuestType
source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
The bitwise or (|) of the bits in two flags values.
source§impl BitXor for AvailableQuestType
impl BitXor for AvailableQuestType
source§impl BitXorAssign for AvailableQuestType
impl BitXorAssign for AvailableQuestType
source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
The bitwise exclusive-or (^) of the bits in two flags values.
source§impl Clone for AvailableQuestType
impl Clone for AvailableQuestType
source§fn clone(&self) -> AvailableQuestType
fn clone(&self) -> AvailableQuestType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AvailableQuestType
impl Debug for AvailableQuestType
source§impl Default for AvailableQuestType
impl Default for AvailableQuestType
source§fn default() -> AvailableQuestType
fn default() -> AvailableQuestType
source§impl<'de> Deserialize<'de> for AvailableQuestType
impl<'de> Deserialize<'de> for AvailableQuestType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Extend<AvailableQuestType> for AvailableQuestType
impl Extend<AvailableQuestType> for AvailableQuestType
source§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
The bitwise or (|) of the bits in each flags value.
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)source§impl Flags for AvailableQuestType
impl Flags for AvailableQuestType
source§const FLAGS: &'static [Flag<AvailableQuestType>] = _
const FLAGS: &'static [Flag<AvailableQuestType>] = _
source§fn from_bits_retain(bits: u128) -> AvailableQuestType
fn from_bits_retain(bits: u128) -> AvailableQuestType
source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
source§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in two flags values.source§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!). Read moresource§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in two flags values.source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in two flags values.source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!). Read moresource§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in two flags values.source§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in a flags value, truncating the result.source§impl FromIterator<AvailableQuestType> for AvailableQuestType
impl FromIterator<AvailableQuestType> for AvailableQuestType
source§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
The bitwise or (|) of the bits in each flags value.
source§impl HelperReadWrite for AvailableQuestType
impl HelperReadWrite for AvailableQuestType
source§fn read(
reader: &mut (impl Read + Seek),
packet_type: PacketType,
xor: u32,
sub: u32,
) -> Result<Self, PacketError>
fn read( reader: &mut (impl Read + Seek), packet_type: PacketType, xor: u32, sub: u32, ) -> Result<Self, PacketError>
source§fn write(
&self,
writer: &mut impl Write,
packet_type: PacketType,
xor: u32,
sub: u32,
) -> Result<(), PacketError>
fn write( &self, writer: &mut impl Write, packet_type: PacketType, xor: u32, sub: u32, ) -> Result<(), PacketError>
source§impl IntoIterator for AvailableQuestType
impl IntoIterator for AvailableQuestType
source§impl LowerHex for AvailableQuestType
impl LowerHex for AvailableQuestType
source§impl Not for AvailableQuestType
impl Not for AvailableQuestType
source§impl Octal for AvailableQuestType
impl Octal for AvailableQuestType
source§impl PartialEq for AvailableQuestType
impl PartialEq for AvailableQuestType
source§fn eq(&self, other: &AvailableQuestType) -> bool
fn eq(&self, other: &AvailableQuestType) -> bool
self and other values to be equal, and is used
by ==.source§impl PublicFlags for AvailableQuestType
impl PublicFlags for AvailableQuestType
source§impl Serialize for AvailableQuestType
impl Serialize for AvailableQuestType
source§impl Sub for AvailableQuestType
impl Sub for AvailableQuestType
source§fn sub(self, other: Self) -> Self
fn sub(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
§type Output = AvailableQuestType
type Output = AvailableQuestType
- operator.source§impl SubAssign for AvailableQuestType
impl SubAssign for AvailableQuestType
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
source§impl UpperHex for AvailableQuestType
impl UpperHex for AvailableQuestType
impl StructuralPartialEq for AvailableQuestType
Auto Trait Implementations§
impl Freeze for AvailableQuestType
impl RefUnwindSafe for AvailableQuestType
impl Send for AvailableQuestType
impl Sync for AvailableQuestType
impl Unpin for AvailableQuestType
impl UnwindSafe for AvailableQuestType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)