[−][src]Trait bam::record::tags::WriteValue
A trait for writing tag values. Implemented for:
char
, but will return error, if char takes more than one byte,- numeric values
i8
,u8
,i16
,u16
,i32
,u32
,f32
, - numeric slices
&[i8]
,&[u8]
,&[i16]
, ...,&[f32]
, - string slice
&str
. You can usestd::str::from_utf8_unchecked
to convert&[u8]
to&str
. We use&str
here to distinguish between string and int array types. - hex wrapper over
&[u8]
,
String and Hex values cannot contain null symbols, even at the end.
The trait cannot be implemented for new types.
Required methods
fn write<W: Write>(&self, f: &mut W) -> Result<usize>
Returns the number of written bytes (does not include name).