/// Creates a relative offset a fixed distance after the oldest log entry
///
/// A relative `FromBeginning` offset will not always match an `Absolute`
/// offset. In order to save space, Fluvio may sometimes delete events
/// from the beginning of the log. When this happens, the `FromBeginning`
/// relative offset starts counting from the first non-deleted log entry.
///
/// ```text
///                          These events were deleted!
///                          |
///                          vvvvvv
///         Partition Log: [ .., .., 22, 33, 44, 55, 66 ]
///       Absolute Offset:    0,  1,  2,  3,  4,  5,  6
///  FromBeginning Offset:            0,  1,  2,  3,  4
///                                                   ^
///                                                   |
///                           Offset::from_beginning(4)
/// ```
///
/// # Example
///
/// ```
/// # use fluvio::Offset;
/// // Creates an offset pointing 4 places after the oldest log entry
/// let offset: Offset = Offset::from_beginning(4);
/// ```
Creates a relative offset a fixed distance after the oldest log entry
A relative `FromBeginning` offset will not always match an `Absolute`
offset. In order to save space, Fluvio may sometimes delete events
from the beginning of the log. When this happens, the `FromBeginning`
relative offset starts counting from the first non-deleted log entry.

```text
These events were deleted.
Creates a relative offset a fixed distance after the oldest log entry A relative ` FromBeginning ` offset will not always match an ` Absolute ` offset . In order to save space Fluvio may sometimes delete events from the beginning of the log . When this happens the ` FromBeginning ` relative offset starts counting from the first non - deleted log entry . ` ` ` text These events were deleted .
pub fn from_beginning(offset: u32) -> Offset {
        Self {
            inner: OffsetInner::FromBeginning(offset as i64),
        }
    }
pub fn from_beginning ( offset : u32 ) -> Offset { Self { inner : OffsetInner :: FromBeginning ( offset as i64 ) , } }
Creates a relative offset a fixed distance after the oldest log entry
A relative `FromBeginning` offset will not always match an `Absolute`
offset.
Creates a relative offset a fixed distance after the oldest log entry A relative ` FromBeginning ` offset will not always match an ` Absolute ` offset .
offset
u32
example
None
use fluvio::offset;
Creates an offset pointing 4 places after the oldest log entry
let offset: Offset = Offset::from_beginning(4);
```
Creates an offset pointing 4 places after the oldest log entry let offset : Offset = Offset :: from_beginning ( 4 ) ; ` ` `