deref.carbon 435 B

1234567891011
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. package Core library "prelude/operators/deref";
  5. // TODO: Align with https://docs.carbon-lang.dev/docs/design/values.html#dereferencing-customization.
  6. interface CppUnsafeDeref {
  7. let Result:! type;
  8. fn Op[ref self: Self]() -> ref Result;
  9. }