MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / File

Class File

atomic-core/src/output/crdt.rs:187–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185/// A file (trunk) with all its lines.
186#[derive(Debug, Clone)]
187pub struct File {
188 /// The file's unique identifier.
189 pub id: TrunkId,
190 /// The file path.
191 pub path: String,
192 /// The file's inode.
193 pub inode: Inode,
194 /// The file's lifecycle state.
195 pub state: TrunkState,
196 /// The file's encoding (as stored).
197 pub encoding: u8,
198 /// The lines in this file.
199 pub lines: Vec<Line>,
200}
201
202impl File {
203 /// Creates a new file from serialized trunk data.

Callers 4

collectFunction · 0.50
collectFunction · 0.50
collectFunction · 0.50
read_effect_valueMethod · 0.50

Calls

no outgoing calls

Tested by 2

collectFunction · 0.40
collectFunction · 0.40