[−]Struct gokien::engine::GkOptions
Methods
impl GkOptions
impl GkOptionspub 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() -> GkOptionsReturns an empty set of flags.
pub fn all() -> GkOptions
pub fn all() -> GkOptionsReturns the set containing all flags.
pub fn bits(&self) -> u8
pub fn bits(&self) -> u8Returns 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) -> GkOptionsConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: GkOptions) -> bool
pub fn intersects(&self, other: GkOptions) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: GkOptions) -> bool
pub fn contains(&self, other: GkOptions) -> boolReturns 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 GkOptionsfn 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) -> boolfn le(&self, other: &GkOptions) -> bool
fn le(&self, other: &GkOptions) -> boolfn gt(&self, other: &GkOptions) -> bool
fn gt(&self, other: &GkOptions) -> boolfn ge(&self, other: &GkOptions) -> bool
fn ge(&self, other: &GkOptions) -> boolimpl Default for GkOptions
impl Default for GkOptionsfn default() -> Self
fn default() -> Selfimpl Ord for GkOptions
impl Ord for GkOptionsfn cmp(&self, other: &GkOptions) -> Ordering
fn cmp(&self, other: &GkOptions) -> Orderingfn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialEq<GkOptions> for GkOptions
impl PartialEq<GkOptions> for GkOptionsimpl Clone for GkOptions
impl Clone for GkOptionsfn clone(&self) -> GkOptions
fn clone(&self) -> GkOptionsfn 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 GkOptionsfn 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 GkOptionsimpl Eq for GkOptions
impl Eq for GkOptionsimpl Octal for GkOptions
impl Octal for GkOptionsimpl Binary for GkOptions
impl Binary for GkOptionsimpl Debug for GkOptions
impl Debug for GkOptionsimpl UpperHex for GkOptions
impl UpperHex for GkOptionsimpl LowerHex for GkOptions
impl LowerHex for GkOptionsimpl Hash for GkOptions
impl Hash for GkOptionsfn 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 GkOptionstype Output = GkOptions
The resulting type after applying the - operator.
fn sub(self, other: GkOptions) -> GkOptions
fn sub(self, other: GkOptions) -> GkOptionsReturns the set difference of the two sets of flags.
impl SubAssign<GkOptions> for GkOptions
impl SubAssign<GkOptions> for GkOptionsfn 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 GkOptionstype Output = GkOptions
The resulting type after applying the ! operator.
fn not(self) -> GkOptions
fn not(self) -> GkOptionsReturns the complement of this set of flags.
impl BitAnd<GkOptions> for GkOptions
impl BitAnd<GkOptions> for GkOptionstype Output = GkOptions
The resulting type after applying the & operator.
fn bitand(self, other: GkOptions) -> GkOptions
fn bitand(self, other: GkOptions) -> GkOptionsReturns the intersection between the two sets of flags.
impl BitOr<GkOptions> for GkOptions
impl BitOr<GkOptions> for GkOptionstype Output = GkOptions
The resulting type after applying the | operator.
fn bitor(self, other: GkOptions) -> GkOptions
fn bitor(self, other: GkOptions) -> GkOptionsReturns the union of the two sets of flags.
impl BitXor<GkOptions> for GkOptions
impl BitXor<GkOptions> for GkOptionstype Output = GkOptions
The resulting type after applying the ^ operator.
fn bitxor(self, other: GkOptions) -> GkOptions
fn bitxor(self, other: GkOptions) -> GkOptionsReturns the left flags, but with all the right flags toggled.
impl BitAndAssign<GkOptions> for GkOptions
impl BitAndAssign<GkOptions> for GkOptionsfn 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 GkOptionsfn 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 GkOptionsfn 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 GkOptionsfn from_iter<T: IntoIterator<Item = GkOptions>>(iterator: T) -> GkOptions
fn from_iter<T: IntoIterator<Item = GkOptions>>(iterator: T) -> GkOptionsAuto 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 Timpl<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) -> TypeIdimpl<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