fn is_equal_or_descendent_of(&self, base: H, block: H) -> bool {
		if base == block {
			return true
		}

		// TODO: currently this function always succeeds since the only error
		// variant is `Error::NotDescendent`, this may change in the future as
		// other errors (e.g. IO) are not being exposed.
		match self.ancestry(base, block) {
			Ok(_) => true,
			Err(Error::NotDescendent) => false,
		}
	}
/// Returns true if `block` is a descendent of or equal to the given `base`.
Returns true if `block` is a descendent of or equal to the given `base`.
Returns true if ` block ` is a descendent of or equal to the given ` base ` .
fn is_equal_or_descendent_of(&self, base: H, block: H) -> bool {
		if base == block {
			return true
		}
		// TODO: currently this function always succeeds since the only error
		// variant is `Error::NotDescendent`, this may change in the future as
		// other errors (e.g. IO) are not being exposed.
		match self.ancestry(base, block) {
			Ok(_) => true,
			Err(Error::NotDescendent) => false,
		}
	}
fn is_equal_or_descendent_of ( & self , base : H , block : H ) -> bool { if base == block { return true } // TODO: currently this function always succeeds since the only error // variant is `Error::NotDescendent`, this may change in the future as // other errors (e.g. IO) are not being exposed. match self . ancestry ( base , block ) { Ok ( _ ) => true , Err ( Error :: NotDescendent ) => false , } }
Returns true if `block` is a descendent of or equal to the given `base`.
Returns true if ` block ` is a descendent of or equal to the given ` base ` .
&self
base
H
block
H
&self
base
H
block
H