blob: 4ecaf947d79bf4d50a4f1615df9c40d55c6b5fe9 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_DEVELOPER_DEBUG_ZXDB_EXPR_PRETTY_RUST_TUPLE_H_
#define SRC_DEVELOPER_DEBUG_ZXDB_EXPR_PRETTY_RUST_TUPLE_H_
#include "src/developer/debug/zxdb/expr/pretty_type.h"
#include "src/developer/debug/zxdb/symbols/collection.h"
namespace zxdb {
// Rust tuple
class PrettyRustTuple : public PrettyType {
public:
// PrettyType implementation.
void Format(FormatNode* node, const FormatOptions& options,
const fxl::RefPtr<EvalContext>& context, fit::deferred_callback cb) override;
EvalFunction GetMember(const std::string& getter_name) const override;
};
// Rust tuple
class PrettyRustZirconStatus : public PrettyRustTuple {
public:
void Format(FormatNode* node, const FormatOptions& options,
const fxl::RefPtr<EvalContext>& context, fit::deferred_callback cb) override;
};
} // namespace zxdb
#endif // SRC_DEVELOPER_DEBUG_ZXDB_EXPR_PRETTY_RUST_TUPLE_H_