Struct Tree
pub struct Tree { /* private fields */ }
dep_fltk
only.Expand description
Defines a tree widget
Implementations§
§impl Tree
impl Tree
pub fn begin(&self)
pub fn begin(&self)
Begins the Tree widget
pub fn end(&self)
pub fn end(&self)
Ends the Tree widget
pub fn show_self(&mut self)
pub fn show_self(&mut self)
Shows the Tree widget
pub fn set_root_label(&mut self, new_label: &str)
pub fn set_root_label(&mut self, new_label: &str)
Sets the root label
pub fn insert_above(&mut self, above: &TreeItem, name: &str) -> Option<TreeItem> ⓘ
pub fn insert_above(&mut self, above: &TreeItem, name: &str) -> Option<TreeItem> ⓘ
Inserts a TreeItem
above another tree item
pub fn insert(
&mut self,
item: &TreeItem,
name: &str,
pos: i32,
) -> Option<TreeItem> ⓘ
pub fn insert( &mut self, item: &TreeItem, name: &str, pos: i32, ) -> Option<TreeItem> ⓘ
Inserts a TreeItem
at a position pos
pub fn clear(&mut self)
pub fn clear(&mut self)
Clears a tree
pub fn clear_children(&mut self, item: &TreeItem)
pub fn clear_children(&mut self, item: &TreeItem)
Clears all children
pub fn find_clicked(&self, yonly: bool) -> Option<TreeItem> ⓘ
pub fn find_clicked(&self, yonly: bool) -> Option<TreeItem> ⓘ
finds a clicked item
pub fn set_item_clicked(&self) -> Option<TreeItem> ⓘ
👎Deprecated since 1.2.21: use callback_item() instead
pub fn set_item_clicked(&self) -> Option<TreeItem> ⓘ
Set the item that was last clicked.
pub fn first_visible_item(&self) -> Option<TreeItem> ⓘ
pub fn first_visible_item(&self) -> Option<TreeItem> ⓘ
Gets the first visible tree item
pub fn last_visible_item(&self) -> Option<TreeItem> ⓘ
pub fn last_visible_item(&self) -> Option<TreeItem> ⓘ
Gets the last visible tree item
pub fn next_visible_item(
&self,
start: &TreeItem,
direction_key: Key,
) -> Option<TreeItem> ⓘ
pub fn next_visible_item( &self, start: &TreeItem, direction_key: Key, ) -> Option<TreeItem> ⓘ
Gets the next visible tree item
pub fn first_selected_item(&self) -> Option<TreeItem> ⓘ
pub fn first_selected_item(&self) -> Option<TreeItem> ⓘ
Gets the first selected tree item
pub fn last_selected_item(&self) -> Option<TreeItem> ⓘ
pub fn last_selected_item(&self) -> Option<TreeItem> ⓘ
Gets the last selected tree item
pub fn next_item(
&self,
item: &TreeItem,
direction_key: Key,
visible: bool,
) -> Option<TreeItem> ⓘ
pub fn next_item( &self, item: &TreeItem, direction_key: Key, visible: bool, ) -> Option<TreeItem> ⓘ
Gets the next tree item, direction_key
is by default Key::Down
pub fn next_selected_item(
&mut self,
item: &TreeItem,
direction_key: Key,
) -> Option<TreeItem> ⓘ
pub fn next_selected_item( &mut self, item: &TreeItem, direction_key: Key, ) -> Option<TreeItem> ⓘ
Gets the next selected tree item, direction_key
is by default Key::Down
pub fn get_selected_items(&self) -> Option<Vec<TreeItem>> ⓘ
pub fn get_selected_items(&self) -> Option<Vec<TreeItem>> ⓘ
Gets the selected tree items
pub fn open_toggle(&mut self, item: &TreeItem, do_callback: bool)
pub fn open_toggle(&mut self, item: &TreeItem, do_callback: bool)
Toggle the open state
pub fn select_toggle(&mut self, item: &TreeItem, do_callback: bool)
pub fn select_toggle(&mut self, item: &TreeItem, do_callback: bool)
Toggle the select state of the specified
pub fn deselect(
&mut self,
path: &str,
do_callback: bool,
) -> Result<(), FltkError> ⓘ
pub fn deselect( &mut self, path: &str, do_callback: bool, ) -> Result<(), FltkError> ⓘ
Deselect an item at path
and determine whether to do the callback
§Errors
Errors on failure to deselect item
pub fn select_only(
&mut self,
selected_item: &TreeItem,
do_callback: bool,
) -> Result<(), FltkError> ⓘ
pub fn select_only( &mut self, selected_item: &TreeItem, do_callback: bool, ) -> Result<(), FltkError> ⓘ
Select only the specified item, deselecting all others that might be selected.
§Errors
Errors on failure to select an item
pub fn extend_selection_dir(
&mut self,
from: &TreeItem,
to: &TreeItem,
direction_key: Key,
val: TreeItemSelect,
visible: bool,
) -> Result<(), FltkError> ⓘ
pub fn extend_selection_dir( &mut self, from: &TreeItem, to: &TreeItem, direction_key: Key, val: TreeItemSelect, visible: bool, ) -> Result<(), FltkError> ⓘ
Extend the selection between and including from
and to
in a certain direction
§Errors
Errors on failure to extend selection in direction
pub fn extend_selection(
&mut self,
from: &TreeItem,
to: &TreeItem,
val: TreeItemSelect,
visible: bool,
) -> Result<(), FltkError> ⓘ
pub fn extend_selection( &mut self, from: &TreeItem, to: &TreeItem, val: TreeItemSelect, visible: bool, ) -> Result<(), FltkError> ⓘ
Extend the selection between and including from
and to
§Errors
Errors on failure to extend selection
pub fn set_item_focus(&mut self, item: &TreeItem)
pub fn set_item_focus(&mut self, item: &TreeItem)
Set the item that currently should have keyboard focus
pub fn get_item_focus(&self) -> Option<TreeItem> ⓘ
pub fn get_item_focus(&self) -> Option<TreeItem> ⓘ
Get the item that currently has keyboard focus
pub fn is_selected(&self, path: &str) -> bool
pub fn is_selected(&self, path: &str) -> bool
Returns whether an item is selected
pub fn item_label_font(&self) -> Font
pub fn item_label_font(&self) -> Font
Gets the items’ label font
pub fn set_item_label_font(&mut self, val: Font)
pub fn set_item_label_font(&mut self, val: Font)
Sets the items’ label font
pub fn item_label_size(&self) -> i32
pub fn item_label_size(&self) -> i32
Gets the items’ label size
pub fn set_item_label_size(&mut self, val: i32)
pub fn set_item_label_size(&mut self, val: i32)
Sets the items’ label size
pub fn item_label_fgcolor(&self) -> Color
pub fn item_label_fgcolor(&self) -> Color
Gets the items’ foreground color
pub fn set_item_label_fgcolor(&mut self, val: Color)
pub fn set_item_label_fgcolor(&mut self, val: Color)
Sets the items’ foreground color
pub fn item_label_bgcolor(&self) -> Color
pub fn item_label_bgcolor(&self) -> Color
Gets the items’ background color
pub fn set_item_label_bgcolor(&mut self, val: Color)
pub fn set_item_label_bgcolor(&mut self, val: Color)
Sets the items’ foreground color
pub fn connector_color(&self) -> Color
pub fn connector_color(&self) -> Color
Gets the items’ connector color
pub fn set_connector_color(&mut self, val: Color)
pub fn set_connector_color(&mut self, val: Color)
Sets the items’ foreground color
pub fn margin_left(&self) -> i32
pub fn margin_left(&self) -> i32
Gets the left margin
pub fn set_margin_left(&mut self, val: i32)
pub fn set_margin_left(&mut self, val: i32)
Sets the left margin
pub fn margin_top(&self) -> i32
pub fn margin_top(&self) -> i32
Gets the top margin
pub fn set_margin_top(&mut self, val: i32)
pub fn set_margin_top(&mut self, val: i32)
Sets the top margin
pub fn margin_bottom(&self) -> i32
pub fn margin_bottom(&self) -> i32
Gets the bottom margin
pub fn set_margin_bottom(&mut self, val: i32)
pub fn set_margin_bottom(&mut self, val: i32)
Sets the bottom margin
pub fn line_spacing(&self) -> i32
pub fn line_spacing(&self) -> i32
Gets the line spacing
pub fn set_line_spacing(&mut self, val: i32)
pub fn set_line_spacing(&mut self, val: i32)
Sets the line spacing
pub fn open_child_margin_bottom(&self) -> i32
pub fn open_child_margin_bottom(&self) -> i32
Gets the open child bottom margin
pub fn set_open_child_margin_bottom(&mut self, val: i32)
pub fn set_open_child_margin_bottom(&mut self, val: i32)
Sets the open child bottom margin
pub fn user_icon_margin_left(&self) -> i32
pub fn user_icon_margin_left(&self) -> i32
Gets the user icon left margin
pub fn set_user_icon_margin_left(&mut self, val: i32)
pub fn set_user_icon_margin_left(&mut self, val: i32)
Sets the user icon left margin
pub fn label_margin_left(&self) -> i32
pub fn label_margin_left(&self) -> i32
Gets the label’s left margin
pub fn set_label_margin_left(&mut self, val: i32)
pub fn set_label_margin_left(&mut self, val: i32)
Sets the label’s left margin
pub fn widget_margin_left(&self) -> i32
pub fn widget_margin_left(&self) -> i32
Gets the widget’s left margin
pub fn set_widget_margin_left(&mut self, val: i32)
pub fn set_widget_margin_left(&mut self, val: i32)
Sets the widget’s left margin
pub fn connector_width(&self) -> i32
pub fn connector_width(&self) -> i32
Gets the connector’s width
pub fn set_connector_width(&mut self, val: i32)
pub fn set_connector_width(&mut self, val: i32)
Sets the connector’s width
pub fn set_user_icon<Img>(&mut self, image: Option<Img>)where
Img: ImageExt,
pub fn set_user_icon<Img>(&mut self, image: Option<Img>)where
Img: ImageExt,
Sets the user icon
pub fn set_open_icon<Img>(&mut self, image: Option<Img>)where
Img: ImageExt,
pub fn set_open_icon<Img>(&mut self, image: Option<Img>)where
Img: ImageExt,
Sets the open icon
pub fn close_icon(&self) -> Option<Box<dyn ImageExt>> ⓘ
pub fn close_icon(&self) -> Option<Box<dyn ImageExt>> ⓘ
Gets the close icon
pub fn set_close_icon<Img>(&mut self, image: Option<Img>)where
Img: ImageExt,
pub fn set_close_icon<Img>(&mut self, image: Option<Img>)where
Img: ImageExt,
Sets the close icon
pub fn show_collapse(&self) -> bool
pub fn show_collapse(&self) -> bool
Returns true if the collapse icon is enabled, false if not.
pub fn set_show_collapse(&mut self, flag: bool)
pub fn set_show_collapse(&mut self, flag: bool)
Sets whether the collapse icon is enabled
pub fn set_show_root(&mut self, flag: bool)
pub fn set_show_root(&mut self, flag: bool)
Sets whether the root is shown
pub fn connector_style(&self) -> TreeConnectorStyle
pub fn connector_style(&self) -> TreeConnectorStyle
Gets the connector style
pub fn set_connector_style(&mut self, val: TreeConnectorStyle)
pub fn set_connector_style(&mut self, val: TreeConnectorStyle)
Sets the connector style
pub fn sort_order(&self) -> TreeSort
pub fn sort_order(&self) -> TreeSort
Gets the sort order
pub fn set_sort_order(&mut self, val: TreeSort)
pub fn set_sort_order(&mut self, val: TreeSort)
Sets the sort order
pub fn select_frame(&self) -> FrameType
pub fn select_frame(&self) -> FrameType
Gets the select frame
pub fn set_select_frame(&mut self, val: FrameType)
pub fn set_select_frame(&mut self, val: FrameType)
Sets the select frame
pub fn select_mode(&self) -> TreeSelect
pub fn select_mode(&self) -> TreeSelect
Gets the Tree select mode
pub fn set_select_mode(&mut self, val: TreeSelect)
pub fn set_select_mode(&mut self, val: TreeSelect)
Sets the Tree select mode
pub fn item_reselect_mode(&self) -> TreeItemReselectMode
pub fn item_reselect_mode(&self) -> TreeItemReselectMode
Gets the Tree item’s reselect mode
pub fn set_item_reselect_mode(&mut self, mode: TreeItemReselectMode)
pub fn set_item_reselect_mode(&mut self, mode: TreeItemReselectMode)
Sets the Tree item’s reselect mode
pub fn item_draw_mode(&self) -> TreeItemDrawMode
pub fn item_draw_mode(&self) -> TreeItemDrawMode
Gets the Tree item’s draw mode
pub fn set_item_draw_mode(&mut self, mode: TreeItemDrawMode)
pub fn set_item_draw_mode(&mut self, mode: TreeItemDrawMode)
Sets the Tree item’s draw mode
pub fn calc_dimensions(&mut self)
pub fn calc_dimensions(&mut self)
Recalculate widget dimensions and scrollbar visibility, normally done automatically
pub fn calc_tree(&mut self)
pub fn calc_tree(&mut self)
Recalculates the tree’s sizes and scrollbar visibility, normally done automatically
pub fn recalc_tree(&mut self)
pub fn recalc_tree(&mut self)
Recalculates the tree’s sizes and scrollbar visibility, normally done automatically
pub fn show_item_top(&mut self, item: &TreeItem)
pub fn show_item_top(&mut self, item: &TreeItem)
Adjust the vertical scrollbar so that item
is visible
pub fn show_item_middle(&mut self, item: &TreeItem)
pub fn show_item_middle(&mut self, item: &TreeItem)
Adjust the vertical scrollbar so that item
is in the middle of the display
pub fn show_item_bottom(&mut self, item: &TreeItem)
pub fn show_item_bottom(&mut self, item: &TreeItem)
Adjust the vertical scrollbar so that the is at the bottom of the display.
pub fn set_vposition(&mut self, pos: i32)
pub fn set_vposition(&mut self, pos: i32)
Sets the vertical position of the item
pub fn set_hposition(&mut self, pos: i32)
pub fn set_hposition(&mut self, pos: i32)
Sets the horizontal position of the item
pub fn is_scrollbar<W>(&mut self, w: &W) -> boolwhere
W: WidgetExt,
pub fn is_scrollbar<W>(&mut self, w: &W) -> boolwhere
W: WidgetExt,
Returns whether the widget is a scrollbar
pub fn scrollbar_size(&self) -> i32
pub fn scrollbar_size(&self) -> i32
Gets the scrollbar size
pub fn set_scrollbar_size(&mut self, sz: i32)
pub fn set_scrollbar_size(&mut self, sz: i32)
Sets the scrollbar size
pub fn is_vscroll_visible(&self) -> bool
pub fn is_vscroll_visible(&self) -> bool
Returns whether vertical scrolling is visible
pub fn is_hscroll_visible(&self) -> bool
pub fn is_hscroll_visible(&self) -> bool
Returns whether horizontal scrolling is visible
pub fn set_callback_item(&mut self, item: &TreeItem)
pub fn set_callback_item(&mut self, item: &TreeItem)
Set the callback item
pub fn callback_item(&self) -> Option<TreeItem> ⓘ
pub fn callback_item(&self) -> Option<TreeItem> ⓘ
Get the callback item
pub fn set_callback_reason(&mut self, reason: TreeReason)
pub fn set_callback_reason(&mut self, reason: TreeReason)
Set the callback reason
pub fn callback_reason(&self) -> TreeReason
pub fn callback_reason(&self) -> TreeReason
Get the callback reason
Trait Implementations§
§impl IntoIterator for Tree
impl IntoIterator for Tree
§impl WidgetBase for Tree
impl WidgetBase for Tree
§fn new<'a, T>(x: i32, y: i32, width: i32, height: i32, title: T) -> Tree
fn new<'a, T>(x: i32, y: i32, width: i32, height: i32, title: T) -> Tree
§fn default_fill() -> Tree
fn default_fill() -> Tree
§unsafe fn from_widget_ptr(ptr: *mut Fl_Widget) -> Tree
unsafe fn from_widget_ptr(ptr: *mut Fl_Widget) -> Tree
§unsafe fn from_widget<W>(w: W) -> Treewhere
W: WidgetExt,
unsafe fn from_widget<W>(w: W) -> Treewhere
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)
fn draw<F>(&mut self, cb: F)
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)
§impl WidgetExt for Tree
impl WidgetExt for Tree
§fn with_label(self, title: &str) -> Tree
fn with_label(self, title: &str) -> Tree
§fn with_align(self, align: Align) -> Tree
fn with_align(self, align: Align) -> Tree
§fn with_type<T>(self, typ: T) -> Treewhere
T: WidgetType,
fn with_type<T>(self, typ: T) -> Treewhere
T: WidgetType,
§fn below_of<W>(self, wid: &W, padding: i32) -> Treewhere
W: WidgetExt,
fn below_of<W>(self, wid: &W, padding: i32) -> Treewhere
W: WidgetExt,
§fn above_of<W>(self, wid: &W, padding: i32) -> Treewhere
W: WidgetExt,
fn above_of<W>(self, wid: &W, padding: i32) -> Treewhere
W: WidgetExt,
§fn right_of<W>(self, wid: &W, padding: i32) -> Treewhere
W: WidgetExt,
fn right_of<W>(self, wid: &W, padding: i32) -> Treewhere
W: WidgetExt,
§fn left_of<W>(self, wid: &W, padding: i32) -> Treewhere
W: WidgetExt,
fn left_of<W>(self, wid: &W, padding: i32) -> Treewhere
W: WidgetExt,
§fn center_of_parent(self) -> Tree
fn center_of_parent(self) -> Tree
§fn size_of_parent(self) -> Tree
fn size_of_parent(self) -> Tree
§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)
fn set_callback<F>(&mut self, cb: F)
§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 Tree
impl Send for Tree
impl Sync for Tree
Auto Trait Implementations§
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