FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextBox

    struct · ferroui-controls · v0.5.0

    struct TextBox
    

    Represents a control that can be used to display or edit unformatted text.

    Template parts: PART_TextPresenter (a TextPresenter, required) and PART_ScrollViewer (a ScrollViewer). Pseudo-classes: :empty, :touch-mode.

    Every text position (CaretIndex, SelectionStart, SelectionEnd, MaxLength) is a UTF-16 code unit index.

    View source

    Members

    text_undo_state

    fn text_undo_state(self: &Self) -> Option<Rc<dyn Any>>
    

    The application's immutable rich-text snapshot for the current text.

    Native undo and redo restore this value, together with character and paragraph styles, before the synchronous TextChanging notification. An editor can downcast it and restore its document ranges exactly rather than guessing the deleted styling from the old and new strings. The application should verify that the snapshot describes the current Text.

    Source

    set_text_undo_state

    fn set_text_undo_state(self: &Self, value: Option<Rc<dyn Any>>)
    

    Associate an immutable application snapshot with the current text.

    Call this after updating rich styles in TextChanging, including after an external Text replacement. If the native undo helper has already captured this exact text, its current final snapshot is updated in place. This neither adds an undo step nor discards redo. Snapshots share the native undo limit and coalescing rules; callers must not mutate a payload after passing it here.

    Source

    is_restoring_text_history

    fn is_restoring_text_history(self: &Self) -> bool
    

    Whether native undo or redo is currently restoring a text snapshot.

    This is intended for synchronous TextChanging handlers. The later, asynchronous TextChanged notification runs after restoration has ended.

    Source

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<TextBox>
    

    Returns a strong reference to this object.

    Source

    coerce_text

    fn coerce_text(self: &Self, value: Option<String>) -> Option<String>
    

    Coerces the current text.

    This method also manages the internal undo/redo state whenever the text changes: if overridden, ensure that the base is called or undo/redo won't work correctly.

    Source

    cut_gesture

    fn cut_gesture() -> Option<KeyGesture>
    

    A platform-specific KeyGesture for the cut action.

    Source

    copy_gesture

    fn copy_gesture() -> Option<KeyGesture>
    

    A platform-specific KeyGesture for the copy action.

    Source

    paste_gesture

    fn paste_gesture() -> Option<KeyGesture>
    

    A platform-specific KeyGesture for the paste action.

    Source

    is_inactive_selection_highlight_enabled_property

    fn is_inactive_selection_highlight_enabled_property() -> &'static StyledProperty<bool>
    

    Defines the IsInactiveSelectionHighlightEnabled property.

    Source

    clear_selection_on_lost_focus_property

    fn clear_selection_on_lost_focus_property() -> &'static StyledProperty<bool>
    

    Defines the ClearSelectionOnLostFocus property.

    Source

    accepts_return_property

    fn accepts_return_property() -> &'static StyledProperty<bool>
    

    Defines the AcceptsReturn property.

    Source

    accepts_tab_property

    fn accepts_tab_property() -> &'static StyledProperty<bool>
    

    Defines the AcceptsTab property.

    Source

    caret_index_property

    fn caret_index_property() -> &'static StyledProperty<i32>
    

    Defines the CaretIndex property.

    Source

    is_read_only_property

    fn is_read_only_property() -> &'static StyledProperty<bool>
    

    Defines the IsReadOnly property.

    Source

    password_char_property

    fn password_char_property() -> &'static StyledProperty<char>
    

    Defines the PasswordChar property ('\0': none).

    Source

    selection_brush_property

    fn selection_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the SelectionBrush property.

    Source

    selection_foreground_brush_property

    fn selection_foreground_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the SelectionForegroundBrush property.

    Source

    caret_brush_property

    fn caret_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the CaretBrush property.

    Source

    fn caret_blink_interval_property() -> &'static StyledProperty<Duration>
    

    Defines the CaretBlinkInterval property.

    Source

    selection_start_property

    fn selection_start_property() -> &'static StyledProperty<i32>
    

    Defines the SelectionStart property.

    Source

    selection_end_property

    fn selection_end_property() -> &'static StyledProperty<i32>
    

    Defines the SelectionEnd property.

    Source

    max_length_property

    fn max_length_property() -> &'static StyledProperty<i32>
    

    Defines the MaxLength property.

    Source

    max_lines_property

    fn max_lines_property() -> &'static StyledProperty<i32>
    

    Defines the MaxLines property.

    Source

    min_lines_property

    fn min_lines_property() -> &'static StyledProperty<i32>
    

    Defines the MinLines property.

    Source

    text_property

    fn text_property() -> &'static StyledProperty<Option<String>>
    

    Defines the Text property.

    Source

    text_style_overrides_property

    fn text_style_overrides_property() -> &'static StyledProperty<Option<TextStyleOverrides>>
    

    Defines the TextStyleOverrides property. Control templates bind this to the presenter's property, just like Text and TextWrapping.

    Source

    text_paragraph_styles_property

    fn text_paragraph_styles_property() -> &'static StyledProperty<Option<TextParagraphStyles>>
    

    Defines immutable UTF-16 paragraph formatting. Templates bind this to TextPresenter, keeping rendering, IME and caret geometry shared.

    Source

    text_alignment_property

    fn text_alignment_property() -> &'static AttachedProperty<TextAlignment>
    

    Defines the TextAlignment property.

    Source

    horizontal_content_alignment_property

    fn horizontal_content_alignment_property() -> &'static StyledProperty<HorizontalAlignment>
    

    Defines the HorizontalContentAlignment property.

    Source

    vertical_content_alignment_property

    fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
    

    Defines the VerticalContentAlignment property.

    Source

    text_wrapping_property

    fn text_wrapping_property() -> &'static AttachedProperty<TextWrapping>
    

    Defines the TextWrapping property.

    Source

    line_height_property

    fn line_height_property() -> &'static AttachedProperty<f64>
    

    Defines the LineHeight property.

    Source

    placeholder_text_property

    fn placeholder_text_property() -> &'static StyledProperty<Option<String>>
    

    Defines the PlaceholderText property.

    Source

    watermark_property

    fn watermark_property() -> &'static StyledProperty<Option<String>>
    

    Defines the Watermark property.

    Deprecated. Use placeholder_text_property instead.

    Source

    use_floating_placeholder_property

    fn use_floating_placeholder_property() -> &'static StyledProperty<bool>
    

    Defines the UseFloatingPlaceholder property.

    Source

    use_floating_watermark_property

    fn use_floating_watermark_property() -> &'static StyledProperty<bool>
    

    Defines the UseFloatingWatermark property.

    Deprecated. Use use_floating_placeholder_property instead.

    Source

    placeholder_foreground_property

    fn placeholder_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the PlaceholderForeground property.

    Source

    watermark_foreground_property

    fn watermark_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the WatermarkForeground property.

    Deprecated. Use placeholder_foreground_property instead.

    Source

    new_line_property

    fn new_line_property() -> &'static StyledProperty<String>
    

    Defines the NewLine property.

    Source

    inner_left_content_property

    fn inner_left_content_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Defines the InnerLeftContent property.

    Source

    inner_right_content_property

    fn inner_right_content_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Defines the InnerRightContent property.

    Source

    reveal_password_property

    fn reveal_password_property() -> &'static StyledProperty<bool>
    

    Defines the RevealPassword property.

    Source

    can_cut_property

    fn can_cut_property() -> &'static DirectProperty<TextBox, bool>
    

    Defines the CanCut property.

    Source

    can_copy_property

    fn can_copy_property() -> &'static DirectProperty<TextBox, bool>
    

    Defines the CanCopy property.

    Source

    can_paste_property

    fn can_paste_property() -> &'static DirectProperty<TextBox, bool>
    

    Defines the CanPaste property.

    Source

    is_undo_enabled_property

    fn is_undo_enabled_property() -> &'static StyledProperty<bool>
    

    Defines the IsUndoEnabled property.

    Source

    undo_limit_property

    fn undo_limit_property() -> &'static StyledProperty<i32>
    

    Defines the UndoLimit property.

    Source

    can_undo_property

    fn can_undo_property() -> &'static DirectProperty<TextBox, bool>
    

    Defines the CanUndo property.

    Source

    can_redo_property

    fn can_redo_property() -> &'static DirectProperty<TextBox, bool>
    

    Defines the CanRedo property.

    Source

    copying_to_clipboard_event

    fn copying_to_clipboard_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Defines the CopyingToClipboard event.

    Source

    cutting_to_clipboard_event

    fn cutting_to_clipboard_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Defines the CuttingToClipboard event.

    Source

    pasting_from_clipboard_event

    fn pasting_from_clipboard_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Defines the PastingFromClipboard event.

    The event is raised with PastingFromClipboardEventArgs.

    Source

    text_changed_event

    fn text_changed_event() -> &'static RoutedEvent<TextChangedEventArgs>
    

    Defines the TextChanged event.

    Source

    text_changing_event

    fn text_changing_event() -> &'static RoutedEvent<TextChangingEventArgs>
    

    Defines the TextChanging event.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Initializes a new instance of the TextBox class.

    Source

    is_inactive_selection_highlight_enabled

    fn is_inactive_selection_highlight_enabled(self: &Self) -> bool
    

    Whether the text box shows a selection highlight when it is not focused.

    Source

    set_is_inactive_selection_highlight_enabled

    fn set_is_inactive_selection_highlight_enabled(self: &Self, value: bool)
    

    Source

    clear_selection_on_lost_focus

    fn clear_selection_on_lost_focus(self: &Self) -> bool
    

    Whether the text box clears its selection after it loses focus.

    Source

    set_clear_selection_on_lost_focus

    fn set_clear_selection_on_lost_focus(self: &Self, value: bool)
    

    Source

    accepts_return

    fn accepts_return(self: &Self) -> bool
    

    Whether the text box allows and displays newline or return characters.

    Source

    set_accepts_return

    fn set_accepts_return(self: &Self, value: bool)
    

    Source

    accepts_tab

    fn accepts_tab(self: &Self) -> bool
    

    Whether the text box allows and displays tabs.

    Source

    set_accepts_tab

    fn set_accepts_tab(self: &Self, value: bool)
    

    Source

    caret_index

    fn caret_index(self: &Self) -> i32
    

    The index of the text caret.

    Source

    set_caret_index

    fn set_caret_index(self: &Self, value: i32)
    

    Source

    is_read_only

    fn is_read_only(self: &Self) -> bool
    

    Whether this text box is read-only.

    Source

    set_is_read_only

    fn set_is_read_only(self: &Self, value: bool)
    

    Source

    password_char

    fn password_char(self: &Self) -> char
    

    The character that should be used for password masking ('\0': none).

    Source

    set_password_char

    fn set_password_char(self: &Self, value: char)
    

    Source

    selection_brush

    fn selection_brush(self: &Self) -> Option<Rc<dyn IBrush>>
    

    A brush that is used to highlight selected text.

    Source

    set_selection_brush

    fn set_selection_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    selection_foreground_brush

    fn selection_foreground_brush(self: &Self) -> Option<Rc<dyn IBrush>>
    

    A brush that is used for the foreground of selected text.

    Source

    set_selection_foreground_brush

    fn set_selection_foreground_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    caret_brush

    fn caret_brush(self: &Self) -> Option<Rc<dyn IBrush>>
    

    A brush that is used for the text caret.

    Source

    set_caret_brush

    fn set_caret_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    fn caret_blink_interval(self: &Self) -> Duration
    

    The caret blink rate.

    Source

    fn set_caret_blink_interval(self: &Self, value: Duration)
    

    Source

    selection_start

    fn selection_start(self: &Self) -> i32
    

    The starting position of the text selected in the text box.

    Source

    set_selection_start

    fn set_selection_start(self: &Self, value: i32)
    

    Source

    selection_changed

    fn selection_changed(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
    

    Observes completed selection operations, independently of focus, read-only state or presenter creation. Individual endpoint writes remain individual operations.

    Dropping the returned guard removes the handler; Subscription::detach keeps it for the life of the text box.

    Source

    set_selection_and_caret

    fn set_selection_and_caret(self: &Self, selection: ferroui_base::input::text_input::TextSelection, caret_index: i32)
    

    Sets the UTF-16 range and caret as one native selection operation. Property notifications retain their usual order; selection observers see the final coerced range when the operation completes.

    Source

    selection_end

    fn selection_end(self: &Self) -> i32
    

    The end position of the text selected in the text box.

    When the SelectionEnd is equal to SelectionStart, there is no selected text and it marks the caret position.

    Source

    set_selection_end

    fn set_selection_end(self: &Self, value: i32)
    

    Source

    max_length

    fn max_length(self: &Self) -> i32
    

    The maximum number of characters that the text box can accept. This constraint only applies for manually entered (user-inputted) text.

    Source

    set_max_length

    fn set_max_length(self: &Self, value: i32)
    

    Source

    max_lines

    fn max_lines(self: &Self) -> i32
    

    The maximum number of visible lines to size to.

    Source

    set_max_lines

    fn set_max_lines(self: &Self, value: i32)
    

    Source

    min_lines

    fn min_lines(self: &Self) -> i32
    

    The minimum number of visible lines to size to.

    Source

    set_min_lines

    fn set_min_lines(self: &Self, value: i32)
    

    Source

    line_height

    fn line_height(self: &Self) -> f64
    

    The line height.

    Source

    set_line_height

    fn set_line_height(self: &Self, value: f64)
    

    Source

    text

    fn text(self: &Self) -> Option<String>
    

    The text content of the text box.

    Source

    set_text

    fn set_text(self: &Self, value: Option<&str>)
    

    Source

    is_composing_text

    fn is_composing_text(self: &Self) -> bool
    

    Whether the input method has supplied pending preedit text.

    An empty preedit update is still pending. The input method clears this state explicitly with None, or it is cleared when the client detaches from its presenter. Unlike the presenter's visual preedit, this state survives selection and caret synchronization during TextChanging.

    Source

    selected_text

    fn selected_text(self: &Self) -> String
    

    The text selected in the text box.

    Source

    set_selected_text

    fn set_selected_text(self: &Self, value: Option<&str>)
    

    Replaces the selected text; a null or empty value deletes it.

    Source

    horizontal_content_alignment

    fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
    

    The horizontal alignment of the content within the control.

    Source

    set_horizontal_content_alignment

    fn set_horizontal_content_alignment(self: &Self, value: HorizontalAlignment)
    

    Source

    vertical_content_alignment

    fn vertical_content_alignment(self: &Self) -> VerticalAlignment
    

    The vertical alignment of the content within the control.

    Source

    set_vertical_content_alignment

    fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
    

    Source

    text_style_overrides

    fn text_style_overrides(self: &Self) -> Option<TextStyleOverrides>
    

    Complete run properties at UTF-16 ranges of Text. Applications that own rich documents should update the immutable collection in TextChanging after rebasing their committed ranges. IME preedit remains a temporary presentation and does not alter the supplied collection.

    Source

    set_text_style_overrides

    fn set_text_style_overrides(self: &Self, value: Option<TextStyleOverrides>)
    

    Source

    text_paragraph_styles

    fn text_paragraph_styles(self: &Self) -> Option<TextParagraphStyles>
    

    Whole-paragraph styles at UTF-16 positions. Rebase committed ranges in TextChanging as with TextStyleOverrides; provisional IME text is remapped automatically without mutating this collection.

    Source

    set_text_paragraph_styles

    fn set_text_paragraph_styles(self: &Self, value: Option<TextParagraphStyles>)
    

    Source

    text_alignment

    fn text_alignment(self: &Self) -> TextAlignment
    

    The text alignment of the text box.

    Source

    set_text_alignment

    fn set_text_alignment(self: &Self, value: TextAlignment)
    

    Source

    placeholder_text

    fn placeholder_text(self: &Self) -> Option<String>
    

    The placeholder or descriptive text that is displayed even if the Text property is not yet set.

    Source

    set_placeholder_text

    fn set_placeholder_text(self: &Self, value: Option<&str>)
    

    Source

    watermark

    fn watermark(self: &Self) -> Option<String>
    

    The placeholder or descriptive text that is displayed even if the Text property is not yet set.

    Deprecated. Use placeholder_text instead.

    Source

    set_watermark

    fn set_watermark(self: &Self, value: Option<&str>)
    

    Deprecated. Use set_placeholder_text instead.

    Source

    use_floating_placeholder

    fn use_floating_placeholder(self: &Self) -> bool
    

    Whether the PlaceholderText will still be shown above the Text even after a text value is set.

    Source

    set_use_floating_placeholder

    fn set_use_floating_placeholder(self: &Self, value: bool)
    

    Source

    use_floating_watermark

    fn use_floating_watermark(self: &Self) -> bool
    

    Whether the PlaceholderText will still be shown above the Text even after a text value is set.

    Deprecated. Use use_floating_placeholder instead.

    Source

    set_use_floating_watermark

    fn set_use_floating_watermark(self: &Self, value: bool)
    

    Deprecated. Use set_use_floating_placeholder instead.

    Source

    placeholder_foreground

    fn placeholder_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
    

    The brush used for the foreground color of the placeholder text.

    Source

    set_placeholder_foreground

    fn set_placeholder_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    watermark_foreground

    fn watermark_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
    

    The brush used for the foreground color of the placeholder text.

    Deprecated. Use placeholder_foreground instead.

    Source

    set_watermark_foreground

    fn set_watermark_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Deprecated. Use set_placeholder_foreground instead.

    Source

    inner_left_content

    fn inner_left_content(self: &Self) -> Option<BoxedValue>
    

    Custom content that is positioned on the left side of the text layout box.

    Source

    set_inner_left_content

    fn set_inner_left_content(self: &Self, value: Option<BoxedValue>)
    

    Source

    inner_right_content

    fn inner_right_content(self: &Self) -> Option<BoxedValue>
    

    Custom content that is positioned on the right side of the text layout box.

    Source

    set_inner_right_content

    fn set_inner_right_content(self: &Self, value: Option<BoxedValue>)
    

    Source

    reveal_password

    fn reveal_password(self: &Self) -> bool
    

    Whether text masked by PasswordChar should be revealed.

    Source

    set_reveal_password

    fn set_reveal_password(self: &Self, value: bool)
    

    Source

    text_wrapping

    fn text_wrapping(self: &Self) -> TextWrapping
    

    The text wrapping of the text box.

    Source

    set_text_wrapping

    fn set_text_wrapping(self: &Self, value: TextWrapping)
    

    Source

    new_line

    fn new_line(self: &Self) -> String
    

    Which characters are inserted when Enter is pressed. Default: the line break of the platform.

    Source

    set_new_line

    fn set_new_line(self: &Self, value: &str)
    

    Source

    clear_selection

    fn clear_selection(self: &Self)
    

    Clears the current selection, maintaining the CaretIndex.

    Source

    can_cut

    fn can_cut(self: &Self) -> bool
    

    Whether the cut command can be executed.

    Source

    can_copy

    fn can_copy(self: &Self) -> bool
    

    Whether the copy command can be executed.

    Source

    can_paste

    fn can_paste(self: &Self) -> bool
    

    Whether the paste command can be executed.

    Source

    is_undo_enabled

    fn is_undo_enabled(self: &Self) -> bool
    

    Whether undo/redo is enabled.

    Source

    set_is_undo_enabled

    fn set_is_undo_enabled(self: &Self, value: bool)
    

    Source

    undo_limit

    fn undo_limit(self: &Self) -> i32
    

    The maximum number of items that can reside in the undo stack.

    Source

    set_undo_limit

    fn set_undo_limit(self: &Self, value: i32)
    

    Source

    can_undo

    fn can_undo(self: &Self) -> bool
    

    Whether the undo stack has an action that can be undone.

    Source

    can_redo

    fn can_redo(self: &Self) -> bool
    

    Whether the redo stack has an action that can be redone.

    Source

    get_line_count

    fn get_line_count(self: &Self) -> i32
    

    The number of lines in the text box, or -1 if no layout information is available.

    If the text wraps, changing the width of the text box may change this value. The value returned is the number of lines in the entire text box, regardless of how many are currently in view.

    Source

    copying_to_clipboard

    fn copying_to_clipboard(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Raised when content is being copied to the clipboard.

    Source

    cutting_to_clipboard

    fn cutting_to_clipboard(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Raised when content is being cut to the clipboard.

    Source

    pasting_from_clipboard

    fn pasting_from_clipboard(self: &Self, handler: impl Fn(&Interactive, &dyn IRoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Raised when content is being pasted from the clipboard.

    The event is raised with PastingFromClipboardEventArgs: the handler receives the args as raised, so that it can reach them with e.downcast_ref::<PastingFromClipboardEventArgs>() (the event itself is declared with the base args, as in the reference).

    Source

    text_changed

    fn text_changed(self: &Self, handler: impl Fn(&Interactive, &TextChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs asynchronously after text changes and the new text is rendered.

    Source

    text_changing

    fn text_changing(self: &Self, handler: impl Fn(&Interactive, &TextChangingEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs synchronously when text starts to change but before it is rendered.

    This event occurs just after the Text property value has been updated.

    Source

    cut

    fn cut(self: &Self)
    

    Cuts the current text onto the clipboard.

    Like the asynchronous method of the reference, everything up to the clipboard call runs before this returns; the selection is deleted once the clipboard has taken the text, from a dispatcher job unless the clipboard completed at once. A failure platform clipboards are known for (see ClipboardHelper::is_expected_clipboard_exception) is logged and leaves the selection in place; any other failure, and a panic of the clipboard, is raised on the dispatcher.

    Source

    copy

    fn copy(self: &Self)
    

    Copies the current text onto the clipboard.

    See cut for how the clipboard operation runs.

    Source

    paste

    fn paste(self: &Self)
    

    Pastes the current clipboard text content into the text box.

    See cut for how the clipboard operation runs.

    Source

    clear

    fn clear(self: &Self)
    

    Clears the text in the text box.

    Source

    scroll_to_line

    fn scroll_to_line(self: &Self, line_index: i32)
    

    Scrolls the text box to the specified line index.

    Panics

    When line_index is less than zero, or larger than or equal to the line count.

    Source

    select_all

    fn select_all(self: &Self)
    

    Selects all text in the text box.

    Source

    undo

    fn undo(self: &Self)
    

    Undoes the first action in the undo stack.

    Source

    redo

    fn redo(self: &Self)
    

    Reapplies the first item on the redo stack.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.