#[non_exhaustive]pub enum GsymVersion {
V1,
V2,
}Expand description
GSYM encoding version.
V1 is the default and the version current tooling reads.
V2 raises v1’s 4 GiB size limit and its 20-byte build-ID
limit, at the cost of requiring LLVM 23 or newer to read it.
Select a version with
GsymBuilder::version, or convert an existing
file with Gsym::transcode. Writing never upgrades
a file on its own: a model that exceeds a v1 limit fails with
Error::V1LimitExceeded.
See docs::format for what differs on disk.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
V1
Widely deployed format, readable by every current tool.
V2
Format without v1’s size limits, readable by LLVM 23 and newer.
Implementations§
Trait Implementations§
Source§impl Clone for GsymVersion
impl Clone for GsymVersion
Source§fn clone(&self) -> GsymVersion
fn clone(&self) -> GsymVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GsymVersion
Source§impl Debug for GsymVersion
impl Debug for GsymVersion
Source§impl Default for GsymVersion
impl Default for GsymVersion
Source§fn default() -> GsymVersion
fn default() -> GsymVersion
Returns the “default value” for a type. Read more
Source§impl Display for GsymVersion
impl Display for GsymVersion
impl Eq for GsymVersion
Source§impl PartialEq for GsymVersion
impl PartialEq for GsymVersion
impl StructuralPartialEq for GsymVersion
Auto Trait Implementations§
impl Freeze for GsymVersion
impl RefUnwindSafe for GsymVersion
impl Send for GsymVersion
impl Sync for GsymVersion
impl Unpin for GsymVersion
impl UnsafeUnpin for GsymVersion
impl UnwindSafe for GsymVersion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more