Struct TextEditor
pub struct TextEditor { /* private fields */ }
dep_fltk
only.Expand description
Creates an editable text display widget
Implementations§
§impl TextEditor
impl TextEditor
pub fn set_insert_mode(&mut self, b: bool)
pub fn set_insert_mode(&mut self, b: bool)
Set to insert mode
pub fn insert_mode(&self) -> bool
pub fn insert_mode(&self) -> bool
Returns whether insert mode is set
Set tab navigation
Returns whether tab navigation is set
pub fn copy(&self)
pub fn copy(&self)
Copies the text within the TextEditor
widget
pub fn cut(&self)
pub fn cut(&self)
Cuts the text within the TextEditor
widget
pub fn paste(&self)
pub fn paste(&self)
Pastes text from the clipboard into the TextEditor
widget
pub fn undo(&self)
pub fn undo(&self)
Undo changes in the TextEditor
widget
pub fn redo(&self)
pub fn redo(&self)
Undo changes in the TextEditor
widget
pub fn kf_default(&mut self, c: Key)
pub fn kf_default(&mut self, c: Key)
Inserts the text associated with key ‘c’
pub fn kf_backspace(&mut self)
pub fn kf_backspace(&mut self)
Does a backspace
pub fn kf_enter(&mut self)
pub fn kf_enter(&mut self)
Inserts a new line
pub fn kf_shift_move(&mut self, c: Key)
pub fn kf_shift_move(&mut self, c: Key)
Extends the current selection in the direction of key ‘c’
pub fn kf_ctrl_move(&mut self, c: Key)
pub fn kf_ctrl_move(&mut self, c: Key)
Moves the current text cursor in the direction indicated by control key ‘c’
pub fn kf_c_s_move(&mut self, c: Key)
pub fn kf_c_s_move(&mut self, c: Key)
Extends the current selection in the direction indicated by control key ‘c’
pub fn kf_meta_move(&mut self, c: Key)
pub fn kf_meta_move(&mut self, c: Key)
Moves the current text cursor in the direction indicated by meta key ‘c’
pub fn kf_m_s_move(&mut self, c: Key)
pub fn kf_m_s_move(&mut self, c: Key)
Extends the current selection in the direction indicated by meta key ‘c’
pub fn kf_home(&mut self)
pub fn kf_home(&mut self)
Moves the text cursor to the beginning of the current line
pub fn kf_end(&mut self)
pub fn kf_end(&mut self)
Moves the text cursor to the end of the current line
pub fn kf_left(&mut self)
pub fn kf_left(&mut self)
Moves the text cursor one character to the left
pub fn kf_up(&mut self)
pub fn kf_up(&mut self)
Moves the text cursor one line up
pub fn kf_right(&mut self)
pub fn kf_right(&mut self)
Moves the text cursor one character to the right
pub fn kf_down(&mut self)
pub fn kf_down(&mut self)
Moves the text cursor one line down
pub fn kf_page_up(&mut self)
pub fn kf_page_up(&mut self)
Moves the text cursor up one page
pub fn kf_page_down(&mut self)
pub fn kf_page_down(&mut self)
Moves the text cursor down one page
pub fn kf_insert(&mut self)
pub fn kf_insert(&mut self)
Toggles the insert mode for the editor
pub fn kf_delete(&mut self)
pub fn kf_delete(&mut self)
Does a delete of selected text or the current character in the current buffer
pub fn kf_select_all(&mut self)
pub fn kf_select_all(&mut self)
Selects all text in the associated buffer
pub fn add_key_binding(
&mut self,
key: Key,
shortcut: Shortcut,
cb: fn(_: Key, _: *mut Fl_Text_Editor) -> i32,
)
pub fn add_key_binding( &mut self, key: Key, shortcut: Shortcut, cb: fn(_: Key, _: *mut Fl_Text_Editor) -> i32, )
Add a key binding
pub fn remove_key_binding(&mut self, key: Key, shortcut: Shortcut)
pub fn remove_key_binding(&mut self, key: Key, shortcut: Shortcut)
Remove a key binding
Trait Implementations§
§impl Clone for TextEditor
impl Clone for TextEditor
§fn clone(&self) -> TextEditor
fn clone(&self) -> TextEditor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for TextEditor
impl Debug for TextEditor
§impl Default for TextEditor
impl Default for TextEditor
§fn default() -> TextEditor
fn default() -> TextEditor
§impl DisplayExt for TextEditor
impl DisplayExt for TextEditor
§fn buffer(&self) -> Option<TextBuffer> ⓘ
fn buffer(&self) -> Option<TextBuffer> ⓘ
TextBuffer
§fn set_buffer<B>(&mut self, buffer: B)
fn set_buffer<B>(&mut self, buffer: B)
TextBuffer
.
Since the widget is long-lived, the lifetime of the buffer is prolonged to the lifetime of the program§fn style_buffer(&self) -> Option<TextBuffer> ⓘ
fn style_buffer(&self) -> Option<TextBuffer> ⓘ
TextBuffer
§fn set_text_font(&mut self, font: Font)
fn set_text_font(&mut self, font: Font)
§fn text_color(&self) -> Color
fn text_color(&self) -> Color
§fn set_text_color(&mut self, color: Color)
fn set_text_color(&mut self, color: Color)
§fn set_text_size(&mut self, sz: i32)
fn set_text_size(&mut self, sz: i32)
§fn set_insert_position(&mut self, new_pos: i32)
fn set_insert_position(&mut self, new_pos: i32)
§fn insert_position(&self) -> i32
fn insert_position(&self) -> i32
§fn count_lines(&self, start: i32, end: i32, is_line_start: bool) -> i32
fn count_lines(&self, start: i32, end: i32, is_line_start: bool) -> i32
§fn show_cursor(&mut self, val: bool)
fn show_cursor(&mut self, val: bool)
§fn set_highlight_data<B, E>(&mut self, style_buffer: B, entries: E)
fn set_highlight_data<B, E>(&mut self, style_buffer: B, entries: E)
§fn set_highlight_data_ext<B, E>(&mut self, style_buffer: B, entries: E)
fn set_highlight_data_ext<B, E>(&mut self, style_buffer: B, entries: E)
§fn unset_highlight_data<B>(&mut self, style_buffer: B)
fn unset_highlight_data<B>(&mut self, style_buffer: B)
§fn set_cursor_style(&mut self, style: Cursor)
fn set_cursor_style(&mut self, style: Cursor)
§fn set_cursor_color(&mut self, color: Color)
fn set_cursor_color(&mut self, color: Color)
§fn set_scrollbar_size(&mut self, size: i32)
fn set_scrollbar_size(&mut self, size: i32)
§fn set_scrollbar_align(&mut self, align: Align)
fn set_scrollbar_align(&mut self, align: Align)
§fn cursor_style(&self) -> Cursor
fn cursor_style(&self) -> Cursor
§fn cursor_color(&self) -> Color
fn cursor_color(&self) -> Color
§fn scrollbar_size(&self) -> i32
fn scrollbar_size(&self) -> i32
§fn scrollbar_align(&self) -> Align
fn scrollbar_align(&self) -> Align
§fn line_start(&self, pos: i32) -> i32
fn line_start(&self, pos: i32) -> i32
§fn line_end(&self, start_pos: i32, is_line_start: bool) -> i32
fn line_end(&self, start_pos: i32, is_line_start: bool) -> i32
§fn skip_lines(&mut self, start_pos: i32, lines: i32, is_line_start: bool) -> i32
fn skip_lines(&mut self, start_pos: i32, lines: i32, is_line_start: bool) -> i32
start_pos
§fn rewind_lines(&mut self, start_pos: i32, lines: i32) -> i32
fn rewind_lines(&mut self, start_pos: i32, lines: i32) -> i32
§fn previous_word(&mut self)
fn previous_word(&mut self)
§fn word_start(&self, pos: i32) -> i32
fn word_start(&self, pos: i32) -> i32
§fn word_end(&self, pos: i32) -> i32
fn word_end(&self, pos: i32) -> i32
§fn set_linenumber_width(&mut self, w: i32)
fn set_linenumber_width(&mut self, w: i32)
§fn linenumber_width(&self) -> i32
fn linenumber_width(&self) -> i32
§fn set_linenumber_font(&mut self, font: Font)
fn set_linenumber_font(&mut self, font: Font)
§fn linenumber_font(&self) -> Font
fn linenumber_font(&self) -> Font
§fn set_linenumber_size(&mut self, size: i32)
fn set_linenumber_size(&mut self, size: i32)
§fn linenumber_size(&self) -> i32
fn linenumber_size(&self) -> i32
§fn set_linenumber_fgcolor(&mut self, color: Color)
fn set_linenumber_fgcolor(&mut self, color: Color)
§fn linenumber_fgcolor(&self) -> Color
fn linenumber_fgcolor(&self) -> Color
§fn set_linenumber_bgcolor(&mut self, color: Color)
fn set_linenumber_bgcolor(&mut self, color: Color)
§fn linenumber_bgcolor(&self) -> Color
fn linenumber_bgcolor(&self) -> Color
§fn set_linenumber_align(&mut self, align: Align)
fn set_linenumber_align(&mut self, align: Align)
§fn linenumber_align(&self) -> Align
fn linenumber_align(&self) -> Align
§fn in_selection(&self, x: i32, y: i32) -> bool
fn in_selection(&self, x: i32, y: i32) -> bool
§fn wrap_mode(&mut self, wrap: WrapMode, wrap_margin: i32)
fn wrap_mode(&mut self, wrap: WrapMode, wrap_margin: i32)
AtColumn
, wrap margin is the column.
If the wrap mode is AtPixel
, wrap margin is the pixel.
For more info§fn wrapped_column(&self, row: i32, column: i32) -> i32
fn wrapped_column(&self, row: i32, column: i32) -> i32
§fn wrapped_row(&self, row: i32) -> i32
fn wrapped_row(&self, row: i32) -> i32
§fn set_grammar_underline_color(&mut self, color: Color)
fn set_grammar_underline_color(&mut self, color: Color)
§fn grammar_underline_color(&self) -> Color
fn grammar_underline_color(&self) -> Color
§fn set_spelling_underline_color(&mut self, color: Color)
fn set_spelling_underline_color(&mut self, color: Color)
§fn spelling_underline_color(&self) -> Color
fn spelling_underline_color(&self) -> Color
§fn set_secondary_selection_color(&mut self, color: Color)
fn set_secondary_selection_color(&mut self, color: Color)
§fn secondary_selection_color(&self) -> Color
fn secondary_selection_color(&self) -> Color
§fn show_insert_position(&mut self)
fn show_insert_position(&mut self)
§impl PartialEq for TextEditor
impl PartialEq for TextEditor
§impl WidgetBase for TextEditor
impl WidgetBase for TextEditor
§fn new<'a, T>(x: i32, y: i32, width: i32, height: i32, title: T) -> TextEditor
fn new<'a, T>(x: i32, y: i32, width: i32, height: i32, title: T) -> TextEditor
§fn default_fill() -> TextEditor
fn default_fill() -> TextEditor
§fn delete(wid: TextEditor)
fn delete(wid: TextEditor)
§unsafe fn from_widget_ptr(ptr: *mut Fl_Widget) -> TextEditor
unsafe fn from_widget_ptr(ptr: *mut Fl_Widget) -> TextEditor
§unsafe fn from_widget<W>(w: W) -> TextEditorwhere
W: WidgetExt,
unsafe fn from_widget<W>(w: W) -> TextEditorwhere
W: WidgetExt,
§fn handle<F>(&mut self, cb: F)
fn handle<F>(&mut self, cb: F)
Fl_Widget::handle(int)
.
Handled or ignored events should return true, unhandled events should return false.
takes the widget as a closure argument.
The ability to handle an event might depend on handling other events, as explained here§fn draw<F>(&mut self, cb: F)where
F: FnMut(&mut TextEditor) + 'static,
fn draw<F>(&mut self, cb: F)where
F: FnMut(&mut TextEditor) + 'static,
WidgetBase::draw
actually calls drawing functions§fn resize_callback<F>(&mut self, cb: F)
fn resize_callback<F>(&mut self, cb: F)
§unsafe fn assume_derived(&mut self)
unsafe fn assume_derived(&mut self)
§fn from_dyn_widget<W>(w: &W) -> Option<TextEditor> ⓘwhere
W: WidgetExt,
fn from_dyn_widget<W>(w: &W) -> Option<TextEditor> ⓘwhere
W: WidgetExt,
§fn from_dyn_widget_ptr(w: *mut Fl_Widget) -> Option<TextEditor> ⓘ
fn from_dyn_widget_ptr(w: *mut Fl_Widget) -> Option<TextEditor> ⓘ
§impl WidgetExt for TextEditor
impl WidgetExt for TextEditor
§fn center_x<W>(self, w: &W) -> TextEditorwhere
W: WidgetExt,
fn center_x<W>(self, w: &W) -> TextEditorwhere
W: WidgetExt,
Initialize center of another widget
§fn center_y<W>(self, w: &W) -> TextEditorwhere
W: WidgetExt,
fn center_y<W>(self, w: &W) -> TextEditorwhere
W: WidgetExt,
Initialize center of another widget
§fn with_pos(self, x: i32, y: i32) -> TextEditor
fn with_pos(self, x: i32, y: i32) -> TextEditor
§fn with_size(self, width: i32, height: i32) -> TextEditor
fn with_size(self, width: i32, height: i32) -> TextEditor
§fn with_label(self, title: &str) -> TextEditor
fn with_label(self, title: &str) -> TextEditor
§fn with_align(self, align: Align) -> TextEditor
fn with_align(self, align: Align) -> TextEditor
§fn with_type<T>(self, typ: T) -> TextEditorwhere
T: WidgetType,
fn with_type<T>(self, typ: T) -> TextEditorwhere
T: WidgetType,
§fn below_of<W>(self, wid: &W, padding: i32) -> TextEditorwhere
W: WidgetExt,
fn below_of<W>(self, wid: &W, padding: i32) -> TextEditorwhere
W: WidgetExt,
§fn above_of<W>(self, wid: &W, padding: i32) -> TextEditorwhere
W: WidgetExt,
fn above_of<W>(self, wid: &W, padding: i32) -> TextEditorwhere
W: WidgetExt,
§fn right_of<W>(self, wid: &W, padding: i32) -> TextEditorwhere
W: WidgetExt,
fn right_of<W>(self, wid: &W, padding: i32) -> TextEditorwhere
W: WidgetExt,
§fn left_of<W>(self, wid: &W, padding: i32) -> TextEditorwhere
W: WidgetExt,
fn left_of<W>(self, wid: &W, padding: i32) -> TextEditorwhere
W: WidgetExt,
§fn center_of<W>(self, w: &W) -> TextEditorwhere
W: WidgetExt,
fn center_of<W>(self, w: &W) -> TextEditorwhere
W: WidgetExt,
§fn center_of_parent(self) -> TextEditor
fn center_of_parent(self) -> TextEditor
§fn size_of<W>(self, w: &W) -> TextEditorwhere
W: WidgetExt,
fn size_of<W>(self, w: &W) -> TextEditorwhere
W: WidgetExt,
§fn size_of_parent(self) -> TextEditor
fn size_of_parent(self) -> TextEditor
§fn set_label(&mut self, title: &str)
fn set_label(&mut self, title: &str)
@
sign.
and for the associated formatting.§fn measure_label(&self) -> (i32, i32) ⓘ
fn measure_label(&self) -> (i32, i32) ⓘ
§fn as_widget_ptr(&self) -> *mut Fl_Widget
fn as_widget_ptr(&self) -> *mut Fl_Widget
Fl_Widget
, for internal use§fn deactivate(&mut self)
fn deactivate(&mut self)
§fn redraw_label(&mut self)
fn redraw_label(&mut self)
§fn resize(&mut self, x: i32, y: i32, width: i32, height: i32)
fn resize(&mut self, x: i32, y: i32, width: i32, height: i32)
§fn widget_resize(&mut self, x: i32, y: i32, width: i32, height: i32)
fn widget_resize(&mut self, x: i32, y: i32, width: i32, height: i32)
§fn set_tooltip(&mut self, txt: &str)
fn set_tooltip(&mut self, txt: &str)
§fn label_color(&self) -> Color
fn label_color(&self) -> Color
§fn set_label_color(&mut self, color: Color)
fn set_label_color(&mut self, color: Color)
§fn label_font(&self) -> Font
fn label_font(&self) -> Font
§fn set_label_font(&mut self, font: Font)
fn set_label_font(&mut self, font: Font)
§fn label_size(&self) -> i32
fn label_size(&self) -> i32
§fn set_label_size(&mut self, sz: i32)
fn set_label_size(&mut self, sz: i32)
§fn label_type(&self) -> LabelType
fn label_type(&self) -> LabelType
§fn set_label_type(&mut self, typ: LabelType)
fn set_label_type(&mut self, typ: LabelType)
§fn set_changed(&mut self)
fn set_changed(&mut self)
§fn clear_changed(&mut self)
fn clear_changed(&mut self)
§fn set_trigger(&mut self, trigger: CallbackTrigger)
fn set_trigger(&mut self, trigger: CallbackTrigger)
when()
§fn trigger(&self) -> CallbackTrigger
fn trigger(&self) -> CallbackTrigger
when()
§fn selection_color(&self) -> Color
fn selection_color(&self) -> Color
§fn set_selection_color(&mut self, color: Color)
fn set_selection_color(&mut self, color: Color)
§fn do_callback(&mut self)
fn do_callback(&mut self)
§fn takes_events(&self) -> bool
fn takes_events(&self) -> bool
§fn set_visible_focus(&mut self)
fn set_visible_focus(&mut self)
§fn clear_visible_focus(&mut self)
fn clear_visible_focus(&mut self)
§fn visible_focus(&mut self, v: bool)
fn visible_focus(&mut self, v: bool)
§fn has_visible_focus(&self) -> bool
fn has_visible_focus(&self) -> bool
§fn was_deleted(&self) -> bool
fn was_deleted(&self) -> bool
§fn set_damage(&mut self, flag: bool)
fn set_damage(&mut self, flag: bool)
§fn damage_type(&self) -> Damage
fn damage_type(&self) -> Damage
§fn set_damage_type(&mut self, mask: Damage)
fn set_damage_type(&mut self, mask: Damage)
§fn set_damage_area(&mut self, mask: Damage, x: i32, y: i32, w: i32, h: i32)
fn set_damage_area(&mut self, mask: Damage, x: i32, y: i32, w: i32, h: i32)
§fn clear_damage(&mut self)
fn clear_damage(&mut self)
§fn inside<W>(&self, wid: &W) -> boolwhere
W: WidgetExt,
fn inside<W>(&self, wid: &W) -> boolwhere
W: WidgetExt,
§fn get_type<T>(&self) -> Twhere
T: WidgetType,
fn get_type<T>(&self) -> Twhere
T: WidgetType,
§fn set_type<T>(&mut self, typ: T)where
T: WidgetType,
fn set_type<T>(&mut self, typ: T)where
T: WidgetType,
§fn set_image_scaled<I>(&mut self, image: Option<I>)where
I: ImageExt,
fn set_image_scaled<I>(&mut self, image: Option<I>)where
I: ImageExt,
§unsafe fn image_mut(&self) -> Option<&mut Image> ⓘ
unsafe fn image_mut(&self) -> Option<&mut Image> ⓘ
§fn set_deimage<I>(&mut self, image: Option<I>)where
I: ImageExt,
fn set_deimage<I>(&mut self, image: Option<I>)where
I: ImageExt,
§fn set_deimage_scaled<I>(&mut self, image: Option<I>)where
I: ImageExt,
fn set_deimage_scaled<I>(&mut self, image: Option<I>)where
I: ImageExt,
§fn deimage(&self) -> Option<Box<dyn ImageExt>> ⓘ
fn deimage(&self) -> Option<Box<dyn ImageExt>> ⓘ
§unsafe fn deimage_mut(&self) -> Option<&mut Image> ⓘ
unsafe fn deimage_mut(&self) -> Option<&mut Image> ⓘ
§fn set_callback<F>(&mut self, cb: F)where
F: FnMut(&mut TextEditor) + 'static,
fn set_callback<F>(&mut self, cb: F)where
F: FnMut(&mut TextEditor) + 'static,
§unsafe fn into_widget<W>(&self) -> Wwhere
W: WidgetBase,
unsafe fn into_widget<W>(&self) -> Wwhere
W: WidgetBase,
WidgetExt
to some widget type Read more§fn visible_r(&self) -> bool
fn visible_r(&self) -> bool
§fn is_same<W>(&self, other: &W) -> boolwhere
W: WidgetExt,
fn is_same<W>(&self, other: &W) -> boolwhere
W: WidgetExt,
§fn handle_event(&mut self, event: Event) -> bool
fn handle_event(&mut self, event: Event) -> bool
§fn is_derived(&self) -> bool
fn is_derived(&self) -> bool
§fn as_base_widget(&self) -> Widgetwhere
Self: Sized,
fn as_base_widget(&self) -> Widgetwhere
Self: Sized,
WidgetExt
to a Widgetimpl Eq for TextEditor
impl Send for TextEditor
impl Sync for TextEditor
Auto Trait Implementations§
impl Freeze for TextEditor
impl RefUnwindSafe for TextEditor
impl Unpin for TextEditor
impl UnwindSafe for TextEditor
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> ByteSized for T
impl<T> ByteSized for T
Source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Source§fn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Source§fn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Source§impl<T, R> Chain<R> for Twhere
T: ?Sized,
impl<T, R> Chain<R> for Twhere
T: ?Sized,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> ExtAny for T
impl<T> ExtAny for T
Source§fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
TypeId
of Self
using a custom hasher.Source§fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Source§impl<T> ExtMem for Twhere
T: ?Sized,
impl<T> ExtMem for Twhere
T: ?Sized,
Source§const NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Source§fn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Source§fn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Source§fn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Source§fn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Source§fn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true
if dropping values of this type matters. Read moreSource§fn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self
without running its destructor. Read moreSource§fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Source§unsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout
only.T
represented by the all-zero byte-pattern. Read moreSource§unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout
only.T
represented by the all-zero byte-pattern. Read moreSource§fn mem_as_bytes(&self) -> &[u8] ⓘ
fn mem_as_bytes(&self) -> &[u8] ⓘ
unsafe_slice
only.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Hook for T
impl<T> Hook for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more