pub struct FormatCosts {
pub format_costs: Option<Vec<FormatCostEntry>>,
/* private fields */
}
Expand description
This is the root of the persistent fidl in a format costs file. The format costs files are read by the assembly tool and merged into the single sysmem_config.persistent_fidl file in the sysmem domain config (see Config above).
Normally json[5] would be preferable for config, but we generate this config in rust using FIDL types (to avoid repetition and to take advantage of FIDL rust codegen), and there’s no json schema for FIDL types.
While the resulting sysmem_config.persistent_fidl is a single file that can contain multiple aspects of sysmem config, in contrast a format costs file contains only format costs. We don’t mind having more separate files during the build, but it’s nice to get sysmem’s domain config down to a single file on-device.
Fields§
§format_costs: Option<Vec<FormatCostEntry>>
This is a chunk of entries that’ll end up in [‘fuchsia.sysmem2.Config.format_costs’] (see above) unless overriden by later entries (either in this same vector or in later-processed files during aggregation by the assembly tool).
Trait Implementations§
Source§impl Clone for FormatCosts
impl Clone for FormatCosts
Source§fn clone(&self) -> FormatCosts
fn clone(&self) -> FormatCosts
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FormatCosts
impl Debug for FormatCosts
Source§impl<D: ResourceDialect> Decode<FormatCosts, D> for FormatCosts
impl<D: ResourceDialect> Decode<FormatCosts, D> for FormatCosts
Source§impl Default for FormatCosts
impl Default for FormatCosts
Source§fn default() -> FormatCosts
fn default() -> FormatCosts
Source§impl<D: ResourceDialect> Encode<FormatCosts, D> for &FormatCosts
impl<D: ResourceDialect> Encode<FormatCosts, D> for &FormatCosts
Source§impl PartialEq for FormatCosts
impl PartialEq for FormatCosts
Source§impl TypeMarker for FormatCosts
impl TypeMarker for FormatCosts
Source§type Owned = FormatCosts
type Owned = FormatCosts
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for FormatCosts
impl ValueTypeMarker for FormatCosts
Source§type Borrowed<'a> = &'a FormatCosts
type Borrowed<'a> = &'a FormatCosts
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for FormatCosts
impl StructuralPartialEq for FormatCosts
Auto Trait Implementations§
impl Freeze for FormatCosts
impl RefUnwindSafe for FormatCosts
impl Send for FormatCosts
impl Sync for FormatCosts
impl Unpin for FormatCosts
impl UnwindSafe for FormatCosts
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)