Revert "[zbitl] Add mutability-related container traits"

This reverts commit f855d59a4c76c689ce07e2926b3747adfd0a2bf3.

Reason for revert: This was a misstep

Original change's description:
> [zbitl] Add mutability-related container traits
>
> We add the following container traits:
> ```
> /// Whether the container's contents are permitted to be mutated.
> static constexpr bool kIsMutable = false;
>
> /// Updates the size of the associated payload. It is the responsibility
> /// of the caller to ensure that this size is sensible; no check is
> /// performed. This trait is only required if `kIsMutable` is true.
> template <typename = std::enable_if<kIsMutable>>
> static void SetPayloadSize(item_header_type& header, uint32_t new_size);
>
> /// Modify a header so that it passes checks. This can be used to mint
> /// new items from a designated initializer that omits uninteresting
> /// bits. This trait is only required if `kIsMutable` is true.
> template <typename = std::enable_if<kIsMutable>>
> static item_header_type SanitizeHeader(item_header_type header);
> ```
> Though only relevant to the ZBI case, introducing these traits will
> allow us to more cleanly layer zbitl::View atop a
> zbitl::internal::Container.
>
> Bug: 68585
> Change-Id: Ief4f180db1a49904b3e35032e341bffe9bcfd364
> Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/523125
> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
> Reviewed-by: Joshua Seaton <joshuaseaton@google.com>
> Reviewed-by: Roland McGrath <mcgrathr@google.com>
> Fuchsia-Auto-Submit: Joshua Seaton <joshuaseaton@google.com>

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 68585
Change-Id: I506758635e600dedf3681c680241935c551c73a8
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/560380
Reviewed-by: Joshua Seaton <joshuaseaton@google.com>
Commit-Queue: Joshua Seaton <joshuaseaton@google.com>
Fuchsia-Auto-Submit: Joshua Seaton <joshuaseaton@google.com>
1 file changed
tree: 4b33976093d300c8c9cfc5c129f6008306c73974
  1. boards/
  2. build/
  3. buildtools/
  4. bundles/
  5. docs/
  6. examples/
  7. garnet/
  8. products/
  9. scripts/
  10. sdk/
  11. src/
  12. third_party/
  13. tools/
  14. zircon/
  15. .clang-format
  16. .clang-tidy
  17. .git-blame-ignore-revs
  18. .gitattributes
  19. .gitignore
  20. .gn
  21. .style.yapf
  22. AUTHORS
  23. BUILD.gn
  24. CODE_OF_CONDUCT.md
  25. CONTRIBUTING.md
  26. LICENSE
  27. OWNERS
  28. PATENTS
  29. README.md
  30. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.