1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// =============================================================================
// Copyright (c) 2026 Haixing Hu.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0.
// =============================================================================
use ;
/// Object-safe capability trait for outputs that can be written and
/// repositioned in the same unit space.
///
/// `SeekableOutput` exists to give the common [`Output`] + [`Seekable`]
/// combination a stable, named trait with a single unit type. It is useful for
/// buffered outputs and other adapters that must flush pending units before
/// seeking the wrapped output.
///
/// [`Self::Item`] is the shared unit type for both writing and seeking. It
/// always matches [`Output::Item`] and [`Seekable::Item`].
///
/// The trait adds no methods of its own. All operations come from the
/// supertraits, and every type implementing both [`Output`] and [`Seekable`]
/// with matching [`Output::Item`] and [`Seekable::Item`] automatically
/// implements `SeekableOutput`.