pub struct TranscodeOptions {
pub version: Option<GsymVersion>,
pub endian: Option<Endian>,
}Expand description
Output choices for semantic GSYM transcoding.
Default keeps both the version and the byte order of the input, which
makes a transcode a pure re-encode. Setting a field converts that property.
use gsym::{Endian, GsymVersion, TranscodeOptions};
let keep_everything = TranscodeOptions::default();
assert!(keep_everything.version.is_none());
let to_big_endian_v2 = TranscodeOptions {
version: Some(GsymVersion::V2),
endian: Some(Endian::Big),
};Fields§
§version: Option<GsymVersion>Preserve the input version when absent.
endian: Option<Endian>Preserve the input byte order when absent.
Trait Implementations§
Source§impl Clone for TranscodeOptions
impl Clone for TranscodeOptions
Source§fn clone(&self) -> TranscodeOptions
fn clone(&self) -> TranscodeOptions
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 TranscodeOptions
Source§impl Debug for TranscodeOptions
impl Debug for TranscodeOptions
Source§impl Default for TranscodeOptions
impl Default for TranscodeOptions
Source§fn default() -> TranscodeOptions
fn default() -> TranscodeOptions
Returns the “default value” for a type. Read more
impl Eq for TranscodeOptions
Source§impl PartialEq for TranscodeOptions
impl PartialEq for TranscodeOptions
impl StructuralPartialEq for TranscodeOptions
Auto Trait Implementations§
impl Freeze for TranscodeOptions
impl RefUnwindSafe for TranscodeOptions
impl Send for TranscodeOptions
impl Sync for TranscodeOptions
impl Unpin for TranscodeOptions
impl UnsafeUnpin for TranscodeOptions
impl UnwindSafe for TranscodeOptions
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