pub struct ChromeImeTextSpan {
pub type: ChromeImeTextSpanType,
pub start_offset: u32,
pub end_offset: u32,
pub chrome_style: Option<ChromeImeTextSpanStyle>,
}Fields§
§type: ChromeImeTextSpanType§start_offset: u32§end_offset: u32§chrome_style: Option<ChromeImeTextSpanStyle>Implementations§
Source§impl ChromeImeTextSpan
impl ChromeImeTextSpan
pub fn new( type: ChromeImeTextSpanType, start_offset: u32, end_offset: u32, ) -> Self
pub fn with_chrome_style(self, chrome_style: ChromeImeTextSpanStyle) -> Self
pub fn no_decoration( type: ChromeImeTextSpanType, start_offset: u32, end_offset: u32, ) -> Self
Trait Implementations§
Source§impl Clone for ChromeImeTextSpan
impl Clone for ChromeImeTextSpan
Source§fn clone(&self) -> ChromeImeTextSpan
fn clone(&self) -> ChromeImeTextSpan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChromeImeTextSpan
impl Debug for ChromeImeTextSpan
Source§impl From<ChromeImeTextSpan> for ImeTextSpan
impl From<ChromeImeTextSpan> for ImeTextSpan
Source§fn from(value: ChromeImeTextSpan) -> Self
fn from(value: ChromeImeTextSpan) -> Self
Converts to this type from the input type.
Source§impl From<ImeTextSpan> for ChromeImeTextSpan
impl From<ImeTextSpan> for ChromeImeTextSpan
Source§fn from(value: ImeTextSpan) -> Self
fn from(value: ImeTextSpan) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChromeImeTextSpan
impl PartialEq for ChromeImeTextSpan
impl Eq for ChromeImeTextSpan
impl StructuralPartialEq for ChromeImeTextSpan
Auto Trait Implementations§
impl Freeze for ChromeImeTextSpan
impl RefUnwindSafe for ChromeImeTextSpan
impl Send for ChromeImeTextSpan
impl Sync for ChromeImeTextSpan
impl Unpin for ChromeImeTextSpan
impl UnsafeUnpin for ChromeImeTextSpan
impl UnwindSafe for ChromeImeTextSpan
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
Mutably borrows from an owned value. Read more