12
12
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
13
13
//
14
14
15
- //! # AST Tree
15
+ //! # Abstract Syntax Tree
16
16
//!
17
17
//! Defines a variety of data structures for describing Miniscript, a subset of
18
18
//! Bitcoin Script which can be efficiently parsed and serialized from Script,
21
21
//! Users of the library in general will only need to use the structures exposed
22
22
//! from the top level of this module; however for people wanting to do advanced
23
23
//! things, the submodules are public as well which provide visibility into the
24
- //! components of the AST trees .
24
+ //! components of the AST.
25
25
//!
26
26
27
27
#[ cfg( feature = "serde" ) ]
@@ -59,7 +59,7 @@ pub struct Miniscript<Pk: MiniscriptKey> {
59
59
60
60
/// `PartialOrd` of `Miniscript` must depend only on node and not the type information.
61
61
/// The type information and extra_properties can be deterministically determined
62
- /// by the ast tree .
62
+ /// by the ast.
63
63
impl < Pk : MiniscriptKey > PartialOrd for Miniscript < Pk > {
64
64
fn partial_cmp ( & self , other : & Miniscript < Pk > ) -> Option < cmp:: Ordering > {
65
65
Some ( self . node . cmp ( & other. node ) )
@@ -68,7 +68,7 @@ impl<Pk: MiniscriptKey> PartialOrd for Miniscript<Pk> {
68
68
69
69
/// `Ord` of `Miniscript` must depend only on node and not the type information.
70
70
/// The type information and extra_properties can be deterministically determined
71
- /// by the ast tree .
71
+ /// by the ast.
72
72
impl < Pk : MiniscriptKey > Ord for Miniscript < Pk > {
73
73
fn cmp ( & self , other : & Miniscript < Pk > ) -> cmp:: Ordering {
74
74
self . node . cmp ( & other. node )
@@ -77,7 +77,7 @@ impl<Pk: MiniscriptKey> Ord for Miniscript<Pk> {
77
77
78
78
/// `PartialEq` of `Miniscript` must depend only on node and not the type information.
79
79
/// The type information and extra_properties can be deterministically determined
80
- /// by the ast tree .
80
+ /// by the ast.
81
81
impl < Pk : MiniscriptKey > PartialEq for Miniscript < Pk > {
82
82
fn eq ( & self , other : & Miniscript < Pk > ) -> bool {
83
83
self . node . eq ( & other. node )
@@ -86,7 +86,7 @@ impl<Pk: MiniscriptKey> PartialEq for Miniscript<Pk> {
86
86
87
87
/// `Eq` of `Miniscript` must depend only on node and not the type information.
88
88
/// The type information and extra_properties can be deterministically determined
89
- /// by the ast tree .
89
+ /// by the ast.
90
90
impl < Pk : MiniscriptKey > Eq for Miniscript < Pk > { }
91
91
92
92
impl < Pk : MiniscriptKey > fmt:: Debug for Miniscript < Pk > {
0 commit comments