[−]Struct gokien::engine::GkOptions
Methods
impl GkOptions
impl GkOptions
pub const FREE_MARKING: GkOptions
To type mark at the end of the word. TELEX user should disable this option, VNI user should enable this.
pub const MODERN_STYLE: GkOptions
Use "hoá" instead of "hóa".
pub const MACRO_ENABLE: GkOptions
pub const USE_CLIPBOARD: GkOptions
pub const ALWAYS_MACRO: GkOptions
pub const STRICT_SPELLING: GkOptions
pub const SPELL_CHECK_ENABLE: GkOptions
pub const RESTORE_NON_VN: GkOptions
pub fn empty() -> GkOptions
pub fn empty() -> GkOptions
Returns an empty set of flags.
pub fn all() -> GkOptions
pub fn all() -> GkOptions
Returns the set containing all flags.
pub fn bits(&self) -> u8
pub fn bits(&self) -> u8
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u8) -> Option<GkOptions>
pub fn from_bits(bits: u8) -> Option<GkOptions>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u8) -> GkOptions
pub fn from_bits_truncate(bits: u8) -> GkOptions
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: GkOptions) -> bool
pub fn intersects(&self, other: GkOptions) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: GkOptions) -> bool
pub fn contains(&self, other: GkOptions) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: GkOptions)
pub fn insert(&mut self, other: GkOptions)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: GkOptions)
pub fn remove(&mut self, other: GkOptions)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: GkOptions)
pub fn toggle(&mut self, other: GkOptions)
Toggles the specified flags in-place.
pub fn set(&mut self, other: GkOptions, value: bool)
pub fn set(&mut self, other: GkOptions, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl PartialOrd<GkOptions> for GkOptions
impl PartialOrd<GkOptions> for GkOptions
fn partial_cmp(&self, other: &GkOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &GkOptions) -> Option<Ordering>
fn lt(&self, other: &GkOptions) -> bool
fn lt(&self, other: &GkOptions) -> bool
fn le(&self, other: &GkOptions) -> bool
fn le(&self, other: &GkOptions) -> bool
fn gt(&self, other: &GkOptions) -> bool
fn gt(&self, other: &GkOptions) -> bool
fn ge(&self, other: &GkOptions) -> bool
fn ge(&self, other: &GkOptions) -> bool
impl Default for GkOptions
impl Default for GkOptions
fn default() -> Self
fn default() -> Self
impl Ord for GkOptions
impl Ord for GkOptions
fn cmp(&self, other: &GkOptions) -> Ordering
fn cmp(&self, other: &GkOptions) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq<GkOptions> for GkOptions
impl PartialEq<GkOptions> for GkOptions
impl Clone for GkOptions
impl Clone for GkOptions
fn clone(&self) -> GkOptions
fn clone(&self) -> GkOptions
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Extend<GkOptions> for GkOptions
impl Extend<GkOptions> for GkOptions
fn extend<T: IntoIterator<Item = GkOptions>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = GkOptions>>(&mut self, iterator: T)
impl Copy for GkOptions
impl Copy for GkOptions
impl Eq for GkOptions
impl Eq for GkOptions
impl Octal for GkOptions
impl Octal for GkOptions
impl Binary for GkOptions
impl Binary for GkOptions
impl Debug for GkOptions
impl Debug for GkOptions
impl UpperHex for GkOptions
impl UpperHex for GkOptions
impl LowerHex for GkOptions
impl LowerHex for GkOptions
impl Hash for GkOptions
impl Hash for GkOptions
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Sub<GkOptions> for GkOptions
impl Sub<GkOptions> for GkOptions
type Output = GkOptions
The resulting type after applying the -
operator.
fn sub(self, other: GkOptions) -> GkOptions
fn sub(self, other: GkOptions) -> GkOptions
Returns the set difference of the two sets of flags.
impl SubAssign<GkOptions> for GkOptions
impl SubAssign<GkOptions> for GkOptions
fn sub_assign(&mut self, other: GkOptions)
fn sub_assign(&mut self, other: GkOptions)
Disables all flags enabled in the set.
impl Not for GkOptions
impl Not for GkOptions
type Output = GkOptions
The resulting type after applying the !
operator.
fn not(self) -> GkOptions
fn not(self) -> GkOptions
Returns the complement of this set of flags.
impl BitAnd<GkOptions> for GkOptions
impl BitAnd<GkOptions> for GkOptions
type Output = GkOptions
The resulting type after applying the &
operator.
fn bitand(self, other: GkOptions) -> GkOptions
fn bitand(self, other: GkOptions) -> GkOptions
Returns the intersection between the two sets of flags.
impl BitOr<GkOptions> for GkOptions
impl BitOr<GkOptions> for GkOptions
type Output = GkOptions
The resulting type after applying the |
operator.
fn bitor(self, other: GkOptions) -> GkOptions
fn bitor(self, other: GkOptions) -> GkOptions
Returns the union of the two sets of flags.
impl BitXor<GkOptions> for GkOptions
impl BitXor<GkOptions> for GkOptions
type Output = GkOptions
The resulting type after applying the ^
operator.
fn bitxor(self, other: GkOptions) -> GkOptions
fn bitxor(self, other: GkOptions) -> GkOptions
Returns the left flags, but with all the right flags toggled.
impl BitAndAssign<GkOptions> for GkOptions
impl BitAndAssign<GkOptions> for GkOptions
fn bitand_assign(&mut self, other: GkOptions)
fn bitand_assign(&mut self, other: GkOptions)
Disables all flags disabled in the set.
impl BitOrAssign<GkOptions> for GkOptions
impl BitOrAssign<GkOptions> for GkOptions
fn bitor_assign(&mut self, other: GkOptions)
fn bitor_assign(&mut self, other: GkOptions)
Adds the set of flags.
impl BitXorAssign<GkOptions> for GkOptions
impl BitXorAssign<GkOptions> for GkOptions
fn bitxor_assign(&mut self, other: GkOptions)
fn bitxor_assign(&mut self, other: GkOptions)
Toggles the set of flags.
impl FromIterator<GkOptions> for GkOptions
impl FromIterator<GkOptions> for GkOptions
fn from_iter<T: IntoIterator<Item = GkOptions>>(iterator: T) -> GkOptions
fn from_iter<T: IntoIterator<Item = GkOptions>>(iterator: T) -> GkOptions
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T