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

Method new

atomic-core/src/change/credit.rs:378–384  ·  view source on GitHub ↗

Create a new line credit.

(line_number: u64, credit: Credit)

Source from the content-addressed store, hash-verified

376impl LineCredit {
377 /// Create a new line credit.
378 pub fn new(line_number: u64, credit: Credit) -> Self {
379 Self {
380 line_number,
381 credit,
382 content: None,
383 }
384 }
385
386 /// Create a line credit with content.
387 pub fn with_content(line_number: u64, credit: Credit, content: impl Into<String>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected