Skip to main content

Labels

Struct Labels 

Source
pub struct Labels {
Show 26 fields pub new_topic: String, pub add_child: String, pub add_sibling: String, pub insert_before: String, pub insert_parent: String, pub delete: String, pub duplicate: String, pub fold: String, pub indent: String, pub outdent: String, pub undo: String, pub redo: String, pub map: String, pub outline: String, pub breadcrumbs: String, pub toolbar: String, pub edit_topic: String, pub collapse: String, pub expand: String, pub toggle_children: String, pub focus_branch: String, pub has_note: String, pub has_image: String, pub image_unavailable: String, pub moving: String, pub drop_here: String,
}
Expand description

Every text the components show, supplied by the host. The default is English; hosts replace any field (or all of them) with their own wording or language.

Fields§

§new_topic: String

Topic of nodes created by commands.

§add_child: String

Command: insert a child.

§add_sibling: String

Command: insert a sibling after.

§insert_before: String

Command: insert a sibling before.

§insert_parent: String

Command: insert a parent.

§delete: String

Command: delete.

§duplicate: String

Command: duplicate.

§fold: String

Command: expand or collapse.

§indent: String

Command: indent.

§outdent: String

Command: outdent.

§undo: String

Command: undo.

§redo: String

Command: redo.

§map: String

Accessible name of the map.

§outline: String

Accessible name of the outline.

§breadcrumbs: String

Accessible name of the outline breadcrumbs.

§toolbar: String

Accessible name of the toolbar.

§edit_topic: String

Accessible name of the topic editor.

§collapse: String

Collapse button.

§expand: String

Expand button.

§toggle_children: String

Outline row toggle.

§focus_branch: String

Outline row action that focuses a branch.

§has_note: String

Marker of a node with a note.

§has_image: String

Marker of a node with a picture.

§image_unavailable: String

Shown when a picture cannot be loaded.

§moving: String

Status while dragging branches.

§drop_here: String

Drop target hint.

Implementations§

Source§

impl Labels

Source

pub fn command(&self, command: Command) -> &str

Label of a command.

Trait Implementations§

Source§

impl Clone for Labels

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Labels

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Labels

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for Labels

Source§

impl PartialEq for Labels

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Labels

Auto Trait Implementations§

§

impl Forget for Labels

§

impl Freeze for Labels

§

impl Move for Labels

§

impl RefUnwindSafe for Labels

§

impl Send for Labels

§

impl Sync for Labels

§

impl Unpin for Labels

§

impl UnsafeUnpin for Labels

§

impl UnwindSafe for Labels

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DependencyElement for T
where T: 'static + PartialEq + Clone,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> InitializeFromFunction<T> for T

Source§

fn initialize_from_function(f: fn() -> T) -> T

Create an instance of this type from an initialization function
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Ret> SpawnIfAsync<(), Ret> for Ret

Source§

fn spawn(self) -> Ret

Spawn the value into the dioxus runtime if it is an async block
Source§

impl<T, O> SuperFrom<T> for O
where O: From<T>,

Source§

fn super_from(input: T) -> O

Convert from a type to another type.
Source§

impl<T, O, M> SuperInto<O, M> for T
where O: SuperFrom<T, M>,

Source§

fn super_into(self) -> O

Convert from a type to another type.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more