Skip to content

Commit 542815f

Browse files
committed
Make Data::path and Data::value pub, since we can get Data from Dir::get_asset.
1 parent bf5519b commit 542815f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/bevy_asset/src/io/memory.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,13 @@ pub enum Value {
275275
}
276276

277277
impl Data {
278-
fn path(&self) -> &Path {
278+
/// The path that this data was written to.
279+
pub fn path(&self) -> &Path {
279280
&self.path
280281
}
281-
fn value(&self) -> &[u8] {
282+
283+
/// The value in bytes that was written here.
284+
pub fn value(&self) -> &[u8] {
282285
match &self.value {
283286
Value::Vec(vec) => vec,
284287
Value::Static(value) => value,

0 commit comments

Comments
 (0)