Skip to main content

Shell

Struct Shell 

Source
pub struct Shell {
Show 19 fields editor: Rc<RefCell<Editor>>, library: Rc<Library>, away: Rc<Cell<bool>>, pasting: Rc<Cell<Pasting>>, waiting: Rc<RefCell<Option<Door>>>, batch: Rc<RefCell<Batch>>, pacing: Rc<Cell<Pacing>>, chrome: Signal<Chrome>, frames: Signal<Option<Metered>>, reported: Signal<Reported>, owed: Signal<Owed>, held: Signal<Vec<Listed>>, renaming: Signal<u64>, picker: Signal<Option<Picker>>, wanted: Signal<Option<Wanted>>, safe: Signal<Rect>, palette: Signal<bool>, section: Signal<Option<Section>>, token: Token,
}
Expand description

The shell, held once behind Rcs so every handler carries a clone.

Fields§

§editor: Rc<RefCell<Editor>>§library: Rc<Library>

The documents the origin holds, and every door onto them.

§away: Rc<Cell<bool>>

Whether a door or the journal is standing between the frame and the document. Every one of them takes the document out of the session for as long as it awaits, so the frame that shares this handle is held off rather than shown a document that is not there.

§pasting: Rc<Cell<Pasting>>

Whether a paste arriving now is one the user asked for.

§waiting: Rc<RefCell<Option<Door>>>

The door someone asked for while another was out, which opens when that one is back. The latest ask is the one kept.

§batch: Rc<RefCell<Batch>>§pacing: Rc<Cell<Pacing>>§chrome: Signal<Chrome>§frames: Signal<Option<Metered>>

The frame-rate readout, kept up only while the session shows it.

§reported: Signal<Reported>

What the shell itself could not do, which the toast shows.

§owed: Signal<Owed>

What the storage owes, which the status line’s liveness slot shows.

§held: Signal<Vec<Listed>>

What the origin holds, which the Diagrams section lists.

§renaming: Signal<u64>

How many times the menu has asked for the rename box. A count rather than a flag: the box lives on the breadcrumb, which has to tell a fresh ask from the one it has already opened on.

§picker: Signal<Option<Picker>>

Which picker an effect opened, if any.

§wanted: Signal<Option<Wanted>>

What an open file pick is for, if one is open.

§safe: Signal<Rect>

The part of the diagram the chrome leaves clear, which the selection overlay places itself inside.

§palette: Signal<bool>

Whether the search palette is up. Shell state, not the session’s — which is why the command that asks for it is an effect.

§section: Signal<Option<Section>>

Which sidebar section is open, if any. Likewise the shell’s: the session has no opinion about what is being browsed.

§token: Token

How this platform writes the command modifier — the whole of §4’s per-platform difference.

Implementations§

Source§

impl Shell

Source

pub fn opening( prefs: &Preferences, prefers: Prefers, opened: Opened, ) -> (Self, Signal<Chrome>)

A shell over the document the origin was opened on, primed: the first call runs here — dressed as the preferences ask — so the chrome has a bar and a tool cluster before a frame has ever been booked.

Source

pub fn chrome(&self) -> Signal<Chrome>

What the components bind.

Source

pub fn frames(&self) -> Signal<Option<Metered>>

What the frame-rate readout shows, once a frame has been metered.

Source

pub fn reported(&self) -> Signal<Reported>

What the shell itself could not do, which the toast shows.

Source

pub fn owed(&self) -> Signal<Owed>

What the storage owes, which the status line’s liveness slot shows.

Source

pub fn owes(&self, depth: Owed)

The storage says how far behind it is.

Source

pub fn picker(&self) -> Signal<Option<Picker>>

Which picker is open, which the overlay anchors.

Source

pub fn wanted(&self) -> Signal<Option<Wanted>>

What an open file pick is for, which the hidden input reads.

Source

pub fn safe(&self) -> Signal<Rect>

The part of the diagram the chrome leaves clear.

Source

pub fn palette(&self) -> Signal<bool>

Whether the search palette is up.

Source

pub fn section(&self) -> Signal<Option<Section>>

Which sidebar section is open, if any.

Source

pub fn works(&self)

Only working dismisses the sidebar’s panel: a press on the diagram or a tool pick is unambiguous intent to edit (docs/cad-ui-spec.md §8). Nothing inside the panel ever closes it.

Source

pub fn escaped(&self) -> Escaped

Escape, claimed before anything else reads it: the palette closes first, then the sidebar’s panel, and only a keystroke neither wanted reaches the canvas.

Source

pub fn theme(&self) -> Theme

The roles the chrome resolves its own readings of the diagram through, in the palette the diagram is painted in.

Source

pub fn token(&self) -> Token

How this platform writes the command modifier.

Source

pub fn attributed(&self) -> String

Who this session’s commits are attributed to as it stands.

Source

pub fn wears(&self, prefs: &Preferences, prefers: Prefers)

Dress the diagram as the preferences ask, and attribute the session to who they name. A preference that did not move changes nothing and books no frame.

Source

pub fn failed(&self, what: impl Into<String>)

Something the shell was asked to do did not work. It is the shell’s own failure, not the document’s, so it is toasted rather than filed among the session’s notices.

Source

pub fn raises(&self, act: Act)

What a control raised: an edit goes into the batch by name, and an effect is performed by whoever owns the flow it belongs to.

Source

fn performs(&self, effect: &Effect)

The doors the chrome opens that the kernel cannot. A door that is not there says so rather than failing silently.

Source

pub fn held(&self) -> Signal<Vec<Listed>>

What the origin holds, for the section that lists it. A signal rather than a call, because the answer is a promise and a component cannot await one.

Source

pub fn asks_to_rename(&self)

Rename: the box the breadcrumb opens on a double click, asked for from the Diagrams section instead. One gesture, two ways in.

Source

pub fn renaming(&self) -> Signal<u64>

The count the box watches, so a fresh ask is told from the one it is already open on.

Source

pub fn deletes(&self)

Delete: the document, gone from the origin, and the session left standing on the next one.

Source

pub fn exports_archive(&self)

Export .bwx.zip: what the origin holds, as the one file a container travels in.

Source

pub fn exports_named(&self, name: &str)

A listed row’s Export: the diagram it names, as the one file a container travels in.

Source

pub fn deletes_named(&self, name: &str)

A listed row’s Delete: the diagram it names, gone from the origin. Any but this tab’s own leaves the session where it stands, and one another tab has open is refused.

Source

pub fn imports_archive(&self, called: String, archive: Vec<u8>)

Import .bwx.zip: a container laid down in the origin under a name nothing stands under, and opened.

Source

fn opens_a_door(&self, door: Door)

The library’s own doors, each of which awaits the origin — so the document leaves the session for as long as one is open and the frame stands off until it is back.

One at a time and never two: the origin is written in the order the store made its writes, and a second door open across the first would interleave a rev with the row that names it.

Source

async fn walks_through(&self, door: Door, doc: Doc) -> (Stood, Option<String>)

What a door leaves the session standing on, and what it could not do.

Source

async fn deletes_this(&self, doc: Doc) -> (Stood, Option<String>)

This tab’s diagram, gone from the origin, and the session left standing on a newborn.

Source

async fn exports_this(&self, doc: Doc) -> (Stood, Option<String>)

This tab’s diagram, packed and handed to the browser to save.

Source

pub fn picked(&self, act: Option<Act>)

A picker or a file pick ended. What it ended in is an ordinary action; a cancel is nothing at all, because opening the flow changed nothing to put back.

Source

pub fn provoked(&self)

The middle button went down on the diagram: a paste that follows is the platform’s, not an ask (Pasting).

Source

pub fn asked(&self)

A key was pressed, so the user is at the keyboard and the next paste is theirs.

Source

pub fn takes_a_paste(&self) -> bool

Whether to take a paste the browser just raised. Asking clears the provocation, so one middle click refuses one paste.

Source

pub fn delivers(&self, what: Wanted, name: &str, bytes: Vec<u8>)

The bytes a file pick came back with, delivered to whatever the pick was opened for — so one that took a while still lands where the press that asked for it meant it to.

Source

pub fn embeds(&self, name: &str, bytes: &[u8])

A document dropped on the diagram, embedded as a block of this one.

No door: an embed is a copy of the arriving drawing, so nothing is laid down in the origin and the session keeps its document throughout. Filing a document is the Diagrams section’s drop (Self::imports_archive).

Source

async fn delivers_archive(&self, named: &Name) -> Result<(), String>

The container named, packed and handed to the browser to save.

Source

fn takes_back(&self, stood: Stood)

Give the document back and let the frame run again.

Source

async fn lists_the_origin(&self)

Source

fn drains(&self)

The journal, after a frame: what the container owes the origin, made.

Source

pub fn reports(&self, what: impl Into<String>)

A standing fact about the document, which the notices strip carries until it is acknowledged — as the desktop’s library reports one.

Source

pub fn unpicked(&self)

A file pick was cancelled. Opening the picker changed nothing, so there is nothing to put back — only the record of the flow to drop.

Source

pub fn typeface(&self) -> FontChoice

The face the diagram is drawn in — which the in-place editor types in too, so the draft and what it covers are the same letters.

Source

pub fn say(&self, event: Event)

Say a thing happened, and book the frame that reads it.

Source

pub fn sampled(&self, sample: Sample)

The same, for what the pointer or the keyboard did.

Source

pub fn mounted(&self, canvas: HtmlCanvasElement)

The canvas is in the document: take its context, size its backing store, and tell the session how big the diagram is.

Source

pub fn resized(&self)

The canvas changed size: the backing store follows the display, and the session is told the viewport it now paints in.

Source

pub fn covers(&self, band: Band, at: Rect)

band lies over the diagram at at, in the canvas’s own coordinates. Measured by the band itself and re-measured when it moves, never cached: what a framing has to stay clear of is where the chrome is, not where it was laid out.

Source

pub fn origin(&self) -> Option<Pos2>

Where the canvas’s top-left sits in client coordinates, which a pointer event is read against.

Source

pub fn grabs(&self, pointer: i32)

Take the pointer for the gesture and the keyboard for the canvas, so a drag that leaves the element still arrives and the keys are read.

Source

pub fn takes_keyboard(&self)

The keyboard goes back to the canvas: a field that closes leaves the focus on the page’s body otherwise, where no digit arms a tool.

Source

fn says_the_safe_region(&self, viewport: Rect)

Source

fn books(&self, ask: impl FnOnce(&mut Pacing) -> Schedule)

Source

fn book(&self, schedule: Schedule)

Source

fn frame(&self)

One frame: what was said, run and shown.

A frame while a door is open would find a document that is not there, so it stands off; what was said keeps until the door closes and books the frame that reads it. The wait is one origin write per owed row, so what it costs at worst is the frame after a commit lands.

Source

fn assemble(&self) -> Vec<Event>

The batch as the call takes it: what time it is, then what was said, then what the browser told the canvas.

Trait Implementations§

Source§

impl Clone for Shell

Source§

fn clone(&self) -> Shell

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Shell

Two shells are the same shell when they are clones of one another, which is what a component needs to know of one.

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

§

impl Freeze for Shell

§

impl !RefUnwindSafe for Shell

§

impl !Send for Shell

§

impl !Sync for Shell

§

impl Unpin for Shell

§

impl UnsafeUnpin for Shell

§

impl !UnwindSafe for Shell

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, D: AdaptFrom<S, Swp, Dwp, T>,

Source§

fn adapt_into_using<M>(self, method: M) -> D
where M: TransformMatrix<T>,

👎Deprecated since 0.7.7:

replaced by palette::chromatic_adaptation::AdaptIntoUnclamped

Convert the source color to the destination color using the specified method.
Source§

fn adapt_into(self) -> D

👎Deprecated since 0.7.7:

replaced by palette::chromatic_adaptation::AdaptIntoUnclamped

Convert the source color to the destination color using the bradford method by default.
Source§

impl<T, C> AdaptIntoUnclamped<T> for C
where T: AdaptFromUnclamped<C>,

Source§

type Scalar = <T as AdaptFromUnclamped<C>>::Scalar

The number type that’s used as the color’s components.
Source§

fn adapt_into_unclamped_with<M>(self) -> T

Adapt a color of type Self into a color of type T, using the custom matrix M. Read more
Source§

fn adapt_into_unclamped(self) -> T
where Bradford: LmsToXyz<Self::Scalar> + XyzToLms<Self::Scalar>,

Adapt a color of type Self into a color of type T, using the Bradford matrix. Read more
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, C> ArraysFrom<C> for T
where C: IntoArrays<T>,

Source§

fn arrays_from(colors: C) -> T

Cast a collection of colors into a collection of arrays.
Source§

impl<T, C> ArraysInto<C> for T
where C: FromArrays<T>,

Source§

fn arrays_into(self) -> C

Cast this collection of arrays into a collection of colors.
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<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for U
where T: FromCam16Unclamped<WpParam, U>,

Source§

type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
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, C> ComponentsFrom<C> for T
where C: IntoComponents<T>,

Source§

fn components_from(colors: C) -> T

Cast a collection of colors into a collection of color components.
§

impl<T> Finish for T

§

fn finish(self)

Does nothing but move self, equivalent to drop.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromAngle<T> for T

Source§

fn from_angle(angle: T) -> T

Performs a conversion from angle.
Source§

impl<T, U> FromStimulus<U> for T
where U: IntoStimulus<T>,

Source§

fn from_stimulus(other: U) -> T

Converts other into Self, while performing the appropriate scaling, rounding and clamping.
§

impl<T> InitializeFromFunction<T> for T

§

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

Create an instance of this type from an initialization function
§

impl<T> Instrument for T

§

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

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

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<T, U> IntoAngle<U> for T
where U: FromAngle<T>,

Source§

fn into_angle(self) -> U

Performs a conversion into T.
Source§

impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for U
where T: Cam16FromUnclamped<WpParam, U>,

Source§

type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Source§

impl<T, U> IntoColor<U> for T
where U: FromColor<T>,

Source§

fn into_color(self) -> U

Convert into T with values clamped to the color defined bounds Read more
Source§

impl<T, U> IntoColorUnclamped<U> for T
where U: FromColorUnclamped<T>,

Source§

fn into_color_unclamped(self) -> U

Convert into T. The resulting color might be invalid in its color space Read more
Source§

impl<T> IntoStimulus<T> for T

Source§

fn into_stimulus(self) -> T

Converts self into T, while performing the appropriate scaling, rounding and clamping.
§

impl<D> OwoColorize for D

§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
§

fn black(&self) -> FgColorDisplay<'_, Black, Self>

Change the foreground color to black
§

fn on_black(&self) -> BgColorDisplay<'_, Black, Self>

Change the background color to black
§

fn red(&self) -> FgColorDisplay<'_, Red, Self>

Change the foreground color to red
§

fn on_red(&self) -> BgColorDisplay<'_, Red, Self>

Change the background color to red
§

fn green(&self) -> FgColorDisplay<'_, Green, Self>

Change the foreground color to green
§

fn on_green(&self) -> BgColorDisplay<'_, Green, Self>

Change the background color to green
§

fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>

Change the foreground color to yellow
§

fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>

Change the background color to yellow
§

fn blue(&self) -> FgColorDisplay<'_, Blue, Self>

Change the foreground color to blue
§

fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>

Change the background color to blue
§

fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to magenta
§

fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to magenta
§

fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to purple
§

fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to purple
§

fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>

Change the foreground color to cyan
§

fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>

Change the background color to cyan
§

fn white(&self) -> FgColorDisplay<'_, White, Self>

Change the foreground color to white
§

fn on_white(&self) -> BgColorDisplay<'_, White, Self>

Change the background color to white
§

fn default_color(&self) -> FgColorDisplay<'_, Default, Self>

Change the foreground color to the terminal default
§

fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>

Change the background color to the terminal default
§

fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>

Change the foreground color to bright black
§

fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>

Change the background color to bright black
§

fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>

Change the foreground color to bright red
§

fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>

Change the background color to bright red
§

fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>

Change the foreground color to bright green
§

fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>

Change the background color to bright green
§

fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>

Change the foreground color to bright yellow
§

fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>

Change the background color to bright yellow
§

fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>

Change the foreground color to bright blue
§

fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>

Change the background color to bright blue
§

fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright magenta
§

fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright magenta
§

fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright purple
§

fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright purple
§

fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>

Change the foreground color to bright cyan
§

fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>

Change the background color to bright cyan
§

fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>

Change the foreground color to bright white
§

fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>

Change the background color to bright white
§

fn bold(&self) -> BoldDisplay<'_, Self>

Make the text bold
§

fn dimmed(&self) -> DimDisplay<'_, Self>

Make the text dim
§

fn italic(&self) -> ItalicDisplay<'_, Self>

Make the text italicized
§

fn underline(&self) -> UnderlineDisplay<'_, Self>

Make the text underlined
Make the text blink
Make the text blink (but fast!)
§

fn reversed(&self) -> ReversedDisplay<'_, Self>

Swap the foreground and background colors
§

fn hidden(&self) -> HiddenDisplay<'_, Self>

Hide the text
§

fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>

Cross out the text
§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either [OwoColorize::fg] or a color-specific method, such as [OwoColorize::green], Read more
§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either [OwoColorize::bg] or a color-specific method, such as [OwoColorize::on_yellow], Read more
§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

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

§

fn spawn(self) -> Ret

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

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

§

fn super_from(input: T) -> O

Convert from a type to another type.
§

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

§

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
§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

§

fn to_owned_table(&self) -> U

Source§

impl<T, C> TryComponentsInto<C> for T
where C: TryFromComponents<T>,

Source§

type Error = <C as TryFromComponents<T>>::Error

The error for when try_into_colors fails to cast.
Source§

fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>

Try to cast this collection of color components into a collection of colors. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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<T, U> TryIntoColor<U> for T
where U: TryFromColor<T>,

Source§

fn try_into_color(self) -> Result<U, OutOfBounds<U>>

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
Source§

impl<C, U> UintsFrom<C> for U
where C: IntoUints<U>,

Source§

fn uints_from(colors: C) -> U

Cast a collection of colors into a collection of unsigned integers.
Source§

impl<C, U> UintsInto<C> for U
where C: FromUints<U>,

Source§

fn uints_into(self) -> C

Cast this collection of unsigned integers into a collection of colors.
Source§

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

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: 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: ErasableGeneric<Repr = Self::Repr>,

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

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

§

impl<T> ErasedDestructor for T
where T: 'static,