libcst 1.8.6

A Python parser and Concrete Syntax Tree library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

use std::fmt;

/// An empty struct that when writes "..." when using `fmt::Debug`. Useful for omitting fields when
/// using `fmt::Formatter::debug_struct`.
pub struct EllipsisDebug;

impl fmt::Debug for EllipsisDebug {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        f.write_str("...")
    }
}