[][src]Struct qt_core::q_text_boundary_finder::BoundaryReason

#[repr(transparent)]pub struct BoundaryReason(_);

The BoundaryReasons type is a typedef for QFlags<BoundaryReason>. It stores an OR combination of BoundaryReason values.

C++ enum: QTextBoundaryFinder::BoundaryReason.

C++ documentation:

The BoundaryReasons type is a typedef for QFlags<BoundaryReason>. It stores an OR combination of BoundaryReason values.

Methods

impl BoundaryReason[src]

pub fn to_int(&self) -> c_int[src]

impl BoundaryReason[src]

pub const NotAtBoundary: BoundaryReason[src]

The boundary finder is not at a boundary position. (C++ enum variant: NotAtBoundary = 0)

pub const BreakOpportunity: BoundaryReason[src]

The boundary finder is at a break opportunity position. Such a break opportunity might also be an item boundary (either StartOfItem, EndOfItem, or combination of both), a mandatory line break, or a soft hyphen. (C++ enum variant: BreakOpportunity = 31)

pub const StartOfItem: BoundaryReason[src]

Since 5.0. The boundary finder is at the start of a grapheme, a word, a sentence, or a line. (C++ enum variant: StartOfItem = 32)

pub const EndOfItem: BoundaryReason[src]

Since 5.0. The boundary finder is at the end of a grapheme, a word, a sentence, or a line. (C++ enum variant: EndOfItem = 64)

pub const MandatoryBreak: BoundaryReason[src]

Since 5.0. The boundary finder is at the end of line (can occur for a Line boundary type only). (C++ enum variant: MandatoryBreak = 128)

pub const SoftHyphen: BoundaryReason[src]

The boundary finder is at the soft hyphen (can occur for a Line boundary type only). (C++ enum variant: SoftHyphen = 256)

Trait Implementations

impl<T: Into<QFlags<BoundaryReason>>> BitOr<T> for BoundaryReason[src]

type Output = QFlags<BoundaryReason>

The resulting type after applying the | operator.

impl Clone for BoundaryReason[src]

impl Copy for BoundaryReason[src]

impl Debug for BoundaryReason[src]

impl Eq for BoundaryReason[src]

impl From<BoundaryReason> for c_int[src]

impl From<BoundaryReason> for QFlags<BoundaryReason>[src]

impl From<i32> for BoundaryReason[src]

impl PartialEq<BoundaryReason> for BoundaryReason[src]

impl StructuralEq for BoundaryReason[src]

impl StructuralPartialEq for BoundaryReason[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.