diff options
| author | 2020-11-25 07:11:27 +0100 | |
|---|---|---|
| committer | 2020-11-26 02:05:43 +0100 | |
| commit | 01322f69a406eee76014f5e2834336e2295ad80e (patch) | |
| tree | 380d9224b81537e460ea7f9fe84c0c912d3f4cbf /graphics/src/window | |
| parent | d612bf56784b41346f18ad9eda4f6d54d699dcb5 (diff) | |
| download | iced-01322f69a406eee76014f5e2834336e2295ad80e.tar.gz iced-01322f69a406eee76014f5e2834336e2295ad80e.tar.bz2 iced-01322f69a406eee76014f5e2834336e2295ad80e.zip  | |
Use recently stabilized intra-doc links
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
Diffstat (limited to 'graphics/src/window')
| -rw-r--r-- | graphics/src/window/compositor.rs | 13 | 
1 files changed, 5 insertions, 8 deletions
diff --git a/graphics/src/window/compositor.rs b/graphics/src/window/compositor.rs index 7674f227..0bc8cbc8 100644 --- a/graphics/src/window/compositor.rs +++ b/graphics/src/window/compositor.rs @@ -16,14 +16,12 @@ pub trait Compositor: Sized {      /// The swap chain of the backend.      type SwapChain; -    /// Creates a new [`Backend`]. -    /// -    /// [`Backend`]: trait.Backend.html +    /// Creates a new [`Compositor`].      fn new(settings: Self::Settings) -> Result<(Self, Self::Renderer), Error>;      /// Crates a new [`Surface`] for the given window.      /// -    /// [`Surface`]: #associatedtype.Surface +    /// [`Surface`]: Self::Surface      fn create_surface<W: HasRawWindowHandle>(          &mut self,          window: &W, @@ -31,8 +29,8 @@ pub trait Compositor: Sized {      /// Crates a new [`SwapChain`] for the given [`Surface`].      /// -    /// [`SwapChain`]: #associatedtype.SwapChain -    /// [`Surface`]: #associatedtype.Surface +    /// [`SwapChain`]: Self::SwapChain +    /// [`Surface`]: Self::Surface      fn create_swap_chain(          &mut self,          surface: &Self::Surface, @@ -42,8 +40,7 @@ pub trait Compositor: Sized {      /// Draws the output primitives to the next frame of the given [`SwapChain`].      /// -    /// [`SwapChain`]: #associatedtype.SwapChain -    /// [`Surface`]: #associatedtype.Surface +    /// [`SwapChain`]: Self::SwapChain      fn draw<T: AsRef<str>>(          &mut self,          renderer: &mut Self::Renderer,  | 
