Skip to content

Commit

Permalink
[data_request] improve DataRequest method summary documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimpkins committed Nov 10, 2021
1 parent 2c9325f commit fb78ef7
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions src/data_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,57 +69,43 @@ impl DataRequest {
DataRequest::from_bool(false)
}

/// Returns a mutable reference to a [DataRequest] that includes
/// glyph layers and points if `b` is `true` or excludes these
/// data if `b` is `false`.
/// Specify whether layers (and glyphs) should be loaded.
pub fn layers(&mut self, b: bool) -> &mut Self {
self.layers = b;
self
}

/// Returns a mutable reference to a [DataRequest] that includes
/// parsed lib.plist data if `b` is `true` or excludes these
/// data if `b` is `false`.
/// Specify whether parsed lib.plist data should be loaded.
pub fn lib(&mut self, b: bool) -> &mut Self {
self.lib = b;
self
}

/// Returns a mutable reference to a [DataRequest] that includes
/// parsed groups.plist data if `b` is `true` or excludes these
/// data if `b` is `false`.
/// Specify whether parsed groups.plist data should be loaded.
pub fn groups(&mut self, b: bool) -> &mut Self {
self.groups = b;
self
}

/// Returns a mutable reference to a [DataRequest] that includes
/// parsed kerning.plist data if `b` is `true` or excludes these
/// data if `b` is `false`.
/// Specify whether parsed kerning.plist data should be loaded.
pub fn kerning(&mut self, b: bool) -> &mut Self {
self.kerning = b;
self
}

/// Returns a mutable reference to a [DataRequest] that includes
/// OpenType Layout features in Adobe .fea format if `b` is `true`
/// or excludes these data if `b` is `false`.
/// Specify whether Adobe OpenType feature syntax (.fea) data should be loaded.
pub fn features(&mut self, b: bool) -> &mut Self {
self.features = b;
self
}

/// Returns a mutable reference to a [DataRequest] that includes
/// UFO data if `b` is true and excludes these data if `b` is
/// `false`.
/// Specify whether arbitrary data should be loaded.
pub fn data(&mut self, b: bool) -> &mut Self {
self.data = b;
self
}

/// Returns a mutable reference to a [DataRequest] that includes
/// images data if `b` is true and excludes these data if `b` is
/// `false`.
/// Specify whether image data should be loaded.
pub fn images(&mut self, b: bool) -> &mut Self {
self.images = b;
self
Expand Down

0 comments on commit fb78ef7

Please sign in to comment.